mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 18:52:19 +02:00
Add null handling for pokemon in move-end
phase
This commit is contained in:
parent
676222744c
commit
ec06c0f666
@ -14,7 +14,7 @@ export class MoveEndPhase extends PokemonPhase {
|
||||
super.start();
|
||||
|
||||
const pokemon = this.getPokemon();
|
||||
if (!this.wasFollowUp && pokemon.isActive(true)) {
|
||||
if (!this.wasFollowUp && pokemon?.isActive(true)) {
|
||||
pokemon.lapseTags(BattlerTagLapseType.AFTER_MOVE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user