mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 01:06:09 +00:00
add OverridesHelper.ability()
This commit is contained in:
parent
5924e5c1b4
commit
7732411c92
@ -63,6 +63,17 @@ export class OverridesHelper {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the player (pokemon) {@linkcode Abilities | ability}
|
||||
* @param ability the (pokemon) {@linkcode Abilities | ability} to set
|
||||
* @returns this
|
||||
*/
|
||||
ability(ability: Abilities): this {
|
||||
vi.spyOn(Overrides, "ABILITY_OVERRIDE", "get").mockReturnValue(ability);
|
||||
this.log(`Player Pokemon ability set to ${Abilities[ability]} (=${ability})!`);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override each wave to have or not have standard trainer battles
|
||||
* @returns this
|
||||
|
Loading…
Reference in New Issue
Block a user