From b67de1c52f8e8287f2758c3b8d8b168cca14ef0e Mon Sep 17 00:00:00 2001 From: LaukkaE Date: Sun, 7 Apr 2024 20:47:52 +0300 Subject: [PATCH] simplify alivePlayField --- src/phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index eec4a0b6874..407e51dc538 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2869,7 +2869,7 @@ export class FaintPhase extends PokemonPhase { this.scene.queueMessage(getPokemonMessage(pokemon, ' fainted!'), null, true); - const alivePlayField = this.scene.getField().filter(p => p && p !== pokemon); + const alivePlayField = this.scene.getField(true); alivePlayField.forEach(p => applyPostKnockOutAbAttrs(PostKnockOutAbAttr, p)); if (pokemon.turnData?.attacksReceived?.length) { const defeatSource = this.scene.getPokemonById(pokemon.turnData.attacksReceived[0].sourceId);