simplify alivePlayField

This commit is contained in:
LaukkaE 2024-04-07 20:47:52 +03:00
parent af84157e39
commit b67de1c52f

View File

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