From 9a48c557302893f5eca4e01aa15640bd90f752a9 Mon Sep 17 00:00:00 2001 From: frutescens Date: Sun, 10 Nov 2024 12:48:15 -0800 Subject: [PATCH] Fixed condtional. --- src/phases/move-phase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases/move-phase.ts b/src/phases/move-phase.ts index 2b3f5a07f6c..7cfa3b12476 100644 --- a/src/phases/move-phase.ts +++ b/src/phases/move-phase.ts @@ -120,7 +120,7 @@ export class MovePhase extends BattlePhase { console.log(Moves[this.move.moveId]); // Check if move is unusable (e.g. because it's out of PP due to a mid-turn Spite). - if ((!this.canMove(true) || this.move.ppUsed >= this.move.getMovePp()) && this.pokemon.isActive(true)) { + if (!this.canMove(true) && (this.pokemon.isActive(true) || this.move.ppUsed >= this.move.getMovePp())) { this.fail(); this.showMoveText(); this.showFailedText();