mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-20 16:55:22 +00:00
Fix issue with double battle position logic
This commit is contained in:
parent
6dbe475784
commit
e1768bfc80
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user