Fix Wind Rider

Fix Wind Rider
pull/607/head
LaukkaE 2024-05-07 21:27:17 +03:00
parent 72b4552b01
commit 6b8d9854e0
1 changed files with 4 additions and 1 deletions

View File

@ -539,7 +539,10 @@ export class MoveImmunityStatChangeAbAttr extends MoveImmunityAbAttr {
applyPreDefend(pokemon: Pokemon, passive: boolean, attacker: Pokemon, move: PokemonMove, cancelled: Utils.BooleanHolder, args: any[]): boolean {
const ret = super.applyPreDefend(pokemon, passive, attacker, move, cancelled, args)
if (ret) {
const simulated = args.length > 1 && args[1];
if (!simulated)
pokemon.scene.unshiftPhase(new StatChangePhase(pokemon.scene, pokemon.getBattlerIndex(), true, [ this.stat ], this.levels));
}