mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Fix field moves always playing their animations
This commit is contained in:
parent
84192cd323
commit
a7d2fa1b45
@ -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