Update src/phases/faint-phase.ts

Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
This commit is contained in:
PrabbyDD 2024-10-25 15:55:18 -07:00 committed by GitHub
parent 1b487108e2
commit 532e8e44b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,7 @@ export class FaintPhase extends PokemonPhase {
/** In case the current pokemon was just switched in, make sure it is counted as participating in the combat */ /** In case the current pokemon was just switched in, make sure it is counted as participating in the combat */
this.scene.getPlayerField().forEach((pokemon, i) => { this.scene.getPlayerField().forEach((pokemon, i) => {
if (pokemon?.isActive()) { if (pokemon?.isActive(true)) {
if (pokemon.isPlayer()) { if (pokemon.isPlayer()) {
this.scene.currentBattle.addParticipant(pokemon as PlayerPokemon); this.scene.currentBattle.addParticipant(pokemon as PlayerPokemon);
} }