changing a little bit

This commit is contained in:
PrabbyDD 2024-10-21 08:48:00 -07:00
parent 682e33e0e1
commit c48c45e7a2

View File

@ -45,7 +45,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 */
this.scene.getField().forEach((pokemon, i) => {
this.scene.getPlayerField().forEach((pokemon, i) => {
if (pokemon?.isActive()) {
if (pokemon.isPlayer()) {
this.scene.currentBattle.addParticipant(pokemon as PlayerPokemon);