This commit is contained in:
Smell of curry 2026-06-02 12:31:43 -07:00 committed by GitHub
commit a3ebdff2b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}