Fix crash in double battles with target selection
This commit is contained in:
1 parent
cc435284ec
commit
2a7ebaf89e
1 file changed
+1
-1
@@ -1140,7 +1140,7 @@ export class SelectTargetPhase extends PokemonPhase {
|
||||
this.scene.unshiftPhase(new CommandPhase(this.scene, this.fieldIndex));
|
||||
} else
|
||||
turnCommand.targets = [ cursor ];
|
||||
if (this.scene.currentBattle.turnCommands[this.fieldIndex].command === Command.BALL && this.fieldIndex)
|
||||
if (turnCommand.command === Command.BALL && this.fieldIndex)
|
||||
this.scene.currentBattle.turnCommands[this.fieldIndex - 1].skip = true;
|
||||
this.end();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user