Fix field moves always playing their animations

This commit is contained in:
Sirz Benjie 2025-05-12 17:48:33 -05:00
parent 84192cd323
commit a7d2fa1b45
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -354,8 +354,8 @@ export class MoveEffectPhase extends PokemonPhase {
move.id as Moves, move.id as Moves,
user, user,
firstTarget?.getBattlerIndex() ?? BattlerIndex.ATTACKER, firstTarget?.getBattlerIndex() ?? BattlerIndex.ATTACKER,
// Field moves and some moves used in mystery encounters should be played even on an empty field // Some moves used in mystery encounters should be played even on an empty field
fieldMove || (globalScene.currentBattle?.mysteryEncounter?.hasBattleAnimationsWithoutTargets ?? false), globalScene.currentBattle?.mysteryEncounter?.hasBattleAnimationsWithoutTargets ?? false,
).play(move.hitsSubstitute(user, firstTarget), () => this.postAnimCallback(user, targets)); ).play(move.hitsSubstitute(user, firstTarget), () => this.postAnimCallback(user, targets));
return; return;