mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 17:34:20 +01:00
add hp check to ITEMEFFECT_ORBS
This commit is contained in:
parent
4855b370a9
commit
9e6c5725d0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user