Fixing cancelling attack when switching your 2nd Pokemon in a double battle
This commit is contained in:
1 parent
813b4894f3
commit
cb62d79280
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user