From 7f46670192f1d849cdfabf4ba0e8c7c2ceedea7f Mon Sep 17 00:00:00 2001 From: schmidtc1 <62030095+schmidtc1@users.noreply.github.com> Date: Sun, 29 Dec 2024 10:05:17 -0500 Subject: [PATCH] Update src/phases/command-phase.ts Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/phases/command-phase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases/command-phase.ts b/src/phases/command-phase.ts index f96a738431b..e1f08f5522b 100644 --- a/src/phases/command-phase.ts +++ b/src/phases/command-phase.ts @@ -84,7 +84,7 @@ export class CommandPhase extends FieldPhase { if (moveQueue.length !== 0) { const queuedMove = moveQueue[0]; if (!queuedMove.move) { - this.handleCommand(Command.FIGHT, -1, undefined); + this.handleCommand(Command.FIGHT, -1); } else { const moveIndex = playerPokemon.getMoveset().findIndex(m => m?.moveId === queuedMove.move); if ((moveIndex > -1 && playerPokemon.getMoveset()[moveIndex]!.isUsable(playerPokemon, queuedMove.ignorePP)) || queuedMove.virtual) { // TODO: is the bang correct?