From e1768bfc80f425c57a2cb86260fe38653e80876b Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 25 Nov 2023 16:02:47 -0500 Subject: [PATCH] Fix issue with double battle position logic --- 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 e73c81bbb..cc99f4160 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -840,7 +840,7 @@ export class ToggleDoublePositionPhase extends BattlePhase { const playerPokemon = this.scene.getPlayerField().find(p => p.isActive(true)); if (playerPokemon) { - playerPokemon.setFieldPosition(FieldPosition.CENTER, 500).then(() => { + playerPokemon.setFieldPosition(this.double && this.scene.getParty().filter(p => !p.isFainted()).length > 1 ? FieldPosition.LEFT : FieldPosition.CENTER, 500).then(() => { if (playerPokemon.getFieldIndex() === 1) { const party = this.scene.getParty(); party[1] = party[0];