mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-03 23:12:20 +02:00
simplify alivePlayField
This commit is contained in:
parent
af84157e39
commit
b67de1c52f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user