add OverridesHelper.enemyPassiveAbility

This commit is contained in:
Felix Staud 2024-07-25 16:27:02 -07:00
parent 6d14915f5f
commit e0e37314ce
1 changed files with 11 additions and 0 deletions

View File

@ -185,6 +185,17 @@ export class OverridesHelper {
return this;
}
/**
* Override the enemy (pokemon) **passive** {@linkcode Abilities | ability}
* @param passiveAbility the (pokemon) **passive** {@linkcode Abilities | ability} to set
* @returns this
*/
enemyPassiveAbility(passiveAbility: Abilities): this {
vi.spyOn(Overrides, "OPP_PASSIVE_ABILITY_OVERRIDE", "get").mockReturnValue(passiveAbility);
this.log(`Enemy Pokemon PASSIVE ability set to ${Abilities[passiveAbility]} (=${passiveAbility})!`);
return this;
}
/**
* Override the enemy (pokemon) {@linkcode Moves | moves}set
* @param moveset the {@linkcode Moves | moves}set to set