mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
[Bug] Fix field moves always playing their animations (#5830)
This commit is contained in:
parent
998619e7e5
commit
4376a22a7c
@ -354,8 +354,8 @@ export class MoveEffectPhase extends PokemonPhase {
|
||||
move.id as Moves,
|
||||
user,
|
||||
firstTarget?.getBattlerIndex() ?? BattlerIndex.ATTACKER,
|
||||
// Field moves and some moves used in mystery encounters should be played even on an empty field
|
||||
fieldMove || (globalScene.currentBattle?.mysteryEncounter?.hasBattleAnimationsWithoutTargets ?? false),
|
||||
// Some moves used in mystery encounters should be played even on an empty field
|
||||
globalScene.currentBattle?.mysteryEncounter?.hasBattleAnimationsWithoutTargets ?? false,
|
||||
).play(move.hitsSubstitute(user, firstTarget), () => this.postAnimCallback(user, targets));
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user