Fix issue with double battle position logic
parent
6dbe475784
commit
e1768bfc80
|
@ -840,7 +840,7 @@ export class ToggleDoublePositionPhase extends BattlePhase {
|
||||||
|
|
||||||
const playerPokemon = this.scene.getPlayerField().find(p => p.isActive(true));
|
const playerPokemon = this.scene.getPlayerField().find(p => p.isActive(true));
|
||||||
if (playerPokemon) {
|
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) {
|
if (playerPokemon.getFieldIndex() === 1) {
|
||||||
const party = this.scene.getParty();
|
const party = this.scene.getParty();
|
||||||
party[1] = party[0];
|
party[1] = party[0];
|
||||||
|
|
Loading…
Reference in New Issue