This commit is contained in:
NightKev 2025-04-21 18:06:29 -07:00 committed by GitHub
parent 572aa91078
commit bfcbd6b2f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,7 +84,7 @@ export class FaintPhase extends PokemonPhase {
* so the fainted pokemon has been included. * so the fainted pokemon has been included.
*/ */
for (const pokemon of globalScene.getPlayerField()) { for (const pokemon of globalScene.getPlayerField()) {
if (pokemon.isActive() || pokemon.isFainted()) { if (pokemon?.isActive() || pokemon?.isFainted()) {
globalScene.currentBattle.addParticipant(pokemon); globalScene.currentBattle.addParticipant(pokemon);
} }
} }