mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Re-add ?
This commit is contained in:
parent
572aa91078
commit
bfcbd6b2f0
@ -84,7 +84,7 @@ export class FaintPhase extends PokemonPhase {
|
||||
* so the fainted pokemon has been included.
|
||||
*/
|
||||
for (const pokemon of globalScene.getPlayerField()) {
|
||||
if (pokemon.isActive() || pokemon.isFainted()) {
|
||||
if (pokemon?.isActive() || pokemon?.isFainted()) {
|
||||
globalScene.currentBattle.addParticipant(pokemon);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user