mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 09:16:03 +00:00
allow number
for OverridesHelper.enemySpecies()
This commit is contained in:
parent
08e0531eae
commit
6674fe4984
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user