mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-30 20:57:13 +00:00
Minor changes to double battles for stability
This commit is contained in:
parent
3afd43375a
commit
38f4da7445
@ -683,9 +683,9 @@ export class ToggleDoublePositionPhase extends BattlePhase {
|
||||
start() {
|
||||
super.start();
|
||||
|
||||
const playerPokemon = this.scene.getPlayerPokemon();
|
||||
const playerPokemon = this.scene.getPlayerField().find(p => p.isActive(true));
|
||||
playerPokemon.setFieldPosition(this.double ? FieldPosition.LEFT : FieldPosition.CENTER, 500).then(() => {
|
||||
if (!this.double && playerPokemon.getFieldIndex() === 1) {
|
||||
if (playerPokemon.getFieldIndex() === 1) {
|
||||
const party = this.scene.getParty();
|
||||
party[1] = party[0];
|
||||
party[0] = playerPokemon;
|
||||
|
Loading…
x
Reference in New Issue
Block a user