From cb62d79280da98369e3ae7d41f7c84b4ab1e4cd7 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 29 Oct 2023 01:35:12 -0400 Subject: [PATCH] Fixing cancelling attack when switching your 2nd Pokemon in a double battle --- src/battle-phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle-phases.ts b/src/battle-phases.ts index 20b5a499261..2f2e5bc0214 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -1066,7 +1066,7 @@ export class CommandPhase extends FieldPhase { ? { command: Command.POKEMON, cursor: cursor, args: args } : { command: Command.RUN }; success = true; - if (this.fieldIndex) + if (!isSwitch && this.fieldIndex) this.scene.currentBattle.turnCommands[this.fieldIndex - 1].skip = true; } else if (trapTag) { this.scene.ui.setMode(Mode.COMMAND, this.fieldIndex);