From 29ba51ef34de9343f65257c137a70385fc555511 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 18 Feb 2024 10:53:32 -0500 Subject: [PATCH] Fix crash on catching a Pokemon --- src/battle-phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle-phases.ts b/src/battle-phases.ts index 2bc918b7923..3a7336a9e7a 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -3390,7 +3390,7 @@ export class AttemptCapturePhase extends PokemonPhase { this.end(); }; const removePokemon = () => { - this.scene.getPlayerField().filter(p => p.isActive()).forEach(playerPokemon => playerPokemon.removeTagsBySourceId(pokemon.id)); + this.scene.getPlayerField().filter(p => p.isActive(true)).forEach(playerPokemon => playerPokemon.removeTagsBySourceId(pokemon.id)); pokemon.hp = 0; pokemon.trySetStatus(StatusEffect.FAINT); this.scene.clearEnemyHeldItemModifiers();