Fix issue with generating enemy modifiers

This commit is contained in:
Flashfyre committed 2023-10-27 16:20:51 -04:00
1 parent de126dc35c
commit 970d014bfd
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -635,7 +635,7 @@ export class SummonPhase extends PartyMemberPokemonPhase {
this.scene.field.add(pokemon);
if (!this.player) {
const playerPokemon = this.scene.getPlayerPokemon() as Pokemon;
if (playerPokemon.visible)
if (playerPokemon?.visible)
this.scene.field.moveBelow(pokemon, playerPokemon);
this.scene.currentBattle.seenEnemyPartyMemberIds.add(pokemon.id);
this.scene.updateModifiers(false);