Fix some bugs

This commit is contained in:
Flashfyre committed 2023-04-21 00:10:45 -04:00
1 parent 4d69d3b219
commit 3b238737a1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -598,7 +598,7 @@ export class TurnEndPhase extends BattlePhase {
const enemyPokemon = this.scene.getEnemyPokemon();
const handlePokemon = (pokemon: Pokemon) => {
if (!pokemon)
if (!pokemon || !pokemon.hp)
return;
pokemon.lapseTags(BattleTagLapseType.TURN_END);