[P3][Beta] Fix missing move text when a move fails (#4664)

* Fix missing move text when a move fails

* Use `cancel` function instead of setting `this.cancelled`
This commit is contained in:
innerthunder 2024-10-15 07:02:02 -07:00 committed by GitHub
parent bb98bc2f8e
commit d5f87bbea7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -147,8 +147,9 @@ export class MovePhase extends BattlePhase {
const moveQueue = this.pokemon.getMoveQueue();
if (targets.length === 0 || (moveQueue.length && moveQueue[0].move === Moves.NONE)) {
this.showMoveText();
this.showFailedText();
this.cancelled = true;
this.cancel();
}
}