From 6b8d9854e0a75770bf62773ce71887100223726c Mon Sep 17 00:00:00 2001 From: LaukkaE Date: Tue, 7 May 2024 21:27:17 +0300 Subject: [PATCH] Fix Wind Rider Fix Wind Rider --- src/data/ability.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 92b26ea15..7d9c6698f 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -539,8 +539,11 @@ 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) { - pokemon.scene.unshiftPhase(new StatChangePhase(pokemon.scene, pokemon.getBattlerIndex(), true, [ this.stat ], this.levels)); + const simulated = args.length > 1 && args[1]; + if (!simulated) + pokemon.scene.unshiftPhase(new StatChangePhase(pokemon.scene, pokemon.getBattlerIndex(), true, [ this.stat ], this.levels)); } return ret;