Simplify change

This commit is contained in:
NightKev 2025-04-21 14:29:36 -07:00
parent 0fd7d59446
commit 3c9d48d64b

View File

@ -83,13 +83,11 @@ export class FaintPhase extends PokemonPhase {
* involved in combat, it needs to be counted as a participant so the other party pokemon can get their EXP,
* so the fainted pokemon has been included.
*/
globalScene.getPlayerField().forEach((pokemon, i) => {
if (pokemon?.isActive() || pokemon?.isFainted()) {
if (pokemon.isPlayer()) {
globalScene.currentBattle.addParticipant(pokemon as PlayerPokemon);
for (const pokemon of globalScene.getPlayerField()) {
if (pokemon.isActive() || pokemon.isFainted()) {
globalScene.currentBattle.addParticipant(pokemon);
}
}
});
if (!this.tryOverrideForBattleSpec()) {
this.doFaint();