changing a little bit

This commit is contained in:
PrabbyDD 2024-10-21 08:50:26 -07:00
parent 08e22e680d
commit ff36fbda6f

View File

@ -50,7 +50,7 @@ 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, * 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. * so the fainted pokemon has been included.
*/ */
this.scene.getField().forEach((pokemon, i) => { this.scene.getPlayerField().forEach((pokemon, i) => {
if (pokemon?.isActive() || pokemon?.isFainted()) { if (pokemon?.isActive() || pokemon?.isFainted()) {
if (pokemon.isPlayer()) { if (pokemon.isPlayer()) {
this.scene.currentBattle.addParticipant(pokemon as PlayerPokemon); this.scene.currentBattle.addParticipant(pokemon as PlayerPokemon);