allow `number` for OverridesHelper.enemySpecies()

This commit is contained in:
Felix Staud 2024-07-25 14:57:37 -07:00
parent 08e0531eae
commit 6674fe4984
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ export class OverridesHelper {
* @param species the (pokemon) species to set
* @returns this
*/
enemySpecies(species: Species): this {
enemySpecies(species: Species | number): this {
vi.spyOn(Overrides, "OPP_SPECIES_OVERRIDE", "get").mockReturnValue(species);
this.log(`Enemy Pokemon species set to ${Species[species]} (=${species})!`);
return this;