add hp check to ITEMEFFECT_ORBS

This commit is contained in:
ghoulslash 2023-01-21 08:55:20 -05:00
parent 4855b370a9
commit 9e6c5725d0

View File

@ -2701,8 +2701,11 @@ u8 DoBattlerEndTurnEffects(void)
gBattleStruct->turnEffectsTracker++;
break;
case ENDTURN_ORBS:
if (ItemBattleEffects(ITEMEFFECT_ORBS, gActiveBattler, FALSE))
if (gBattleMons[gActiveBattler].hp != 0
&& ItemBattleEffects(ITEMEFFECT_ORBS, gActiveBattler, FALSE))
{
effect++;
}
gBattleStruct->turnEffectsTracker++;
break;
case ENDTURN_LEECH_SEED: // leech seed