Fixing cancelling attack when switching your 2nd Pokemon in a double battle

pull/2/head
Flashfyre 2023-10-29 01:35:12 -04:00
parent 813b4894f3
commit cb62d79280
1 changed files with 1 additions and 1 deletions

View File

@ -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);