mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 14:59:26 +02:00
changing a little bit
This commit is contained in:
parent
682e33e0e1
commit
c48c45e7a2
@ -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 */
|
/** 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?.isActive()) {
|
||||||
if (pokemon.isPlayer()) {
|
if (pokemon.isPlayer()) {
|
||||||
this.scene.currentBattle.addParticipant(pokemon as PlayerPokemon);
|
this.scene.currentBattle.addParticipant(pokemon as PlayerPokemon);
|
||||||
|
Loading…
Reference in New Issue
Block a user