allow number for OverridesHelper.enemySpecies()

This commit is contained in:
Felix Staud 2024-07-25 14:57:37 -07:00
parent 08e0531eae
commit 6674fe4984

View File

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