mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-13 17:22:25 +01:00
IsBattlerAlive instead of hp check
This commit is contained in:
parent
a044084182
commit
428ea97028
@ -2701,11 +2701,8 @@ u8 DoBattlerEndTurnEffects(void)
|
||||
gBattleStruct->turnEffectsTracker++;
|
||||
break;
|
||||
case ENDTURN_ORBS:
|
||||
if (gBattleMons[gActiveBattler].hp != 0
|
||||
&& ItemBattleEffects(ITEMEFFECT_ORBS, gActiveBattler, FALSE))
|
||||
{
|
||||
if (IsBattlerAlive(gActiveBattler) && ItemBattleEffects(ITEMEFFECT_ORBS, gActiveBattler, FALSE))
|
||||
effect++;
|
||||
}
|
||||
gBattleStruct->turnEffectsTracker++;
|
||||
break;
|
||||
case ENDTURN_LEECH_SEED: // leech seed
|
||||
|
Loading…
x
Reference in New Issue
Block a user