mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Merge 00e8f260e5 into 6765d8422d
This commit is contained in:
commit
a3ebdff2b4
|
|
@ -2842,10 +2842,10 @@ export class Battle {
|
|||
// phazing (Roar, etc)
|
||||
for (const side of this.sides) {
|
||||
for (const pokemon of side.active) {
|
||||
if (pokemon.forceSwitchFlag) {
|
||||
if (pokemon.hp) this.actions.dragIn(pokemon.side, pokemon.position);
|
||||
pokemon.forceSwitchFlag = false;
|
||||
}
|
||||
if (!pokemon) continue;
|
||||
if (!pokemon.forceSwitchFlag) continue;
|
||||
if (pokemon.hp) this.actions.dragIn(pokemon.side, pokemon.position);
|
||||
pokemon.forceSwitchFlag = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user