[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:
parent
bb98bc2f8e
commit
d5f87bbea7
|
@ -147,8 +147,9 @@ export class MovePhase extends BattlePhase {
|
||||||
const moveQueue = this.pokemon.getMoveQueue();
|
const moveQueue = this.pokemon.getMoveQueue();
|
||||||
|
|
||||||
if (targets.length === 0 || (moveQueue.length && moveQueue[0].move === Moves.NONE)) {
|
if (targets.length === 0 || (moveQueue.length && moveQueue[0].move === Moves.NONE)) {
|
||||||
|
this.showMoveText();
|
||||||
this.showFailedText();
|
this.showFailedText();
|
||||||
this.cancelled = true;
|
this.cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue