Remove redundant IsBattlerAlive checks from ITEMEFFECT_ORBS

This commit is contained in:
ghoulslash 2023-01-21 11:11:50 -05:00
parent 9e6c5725d0
commit a044084182

View File

@ -7844,7 +7844,7 @@ u8 ItemBattleEffects(u8 caseID, u8 battlerId, bool8 moveTurn)
switch (battlerHoldEffect)
{
case HOLD_EFFECT_TOXIC_ORB:
if (IsBattlerAlive(battlerId) && CanBePoisoned(battlerId, battlerId))
if (CanBePoisoned(battlerId, battlerId))
{
effect = ITEM_STATUS_CHANGE;
gBattleMons[battlerId].status1 = STATUS1_TOXIC_POISON;
@ -7853,7 +7853,7 @@ u8 ItemBattleEffects(u8 caseID, u8 battlerId, bool8 moveTurn)
}
break;
case HOLD_EFFECT_FLAME_ORB:
if (IsBattlerAlive(battlerId) && CanBeBurned(battlerId))
if (CanBeBurned(battlerId))
{
effect = ITEM_STATUS_CHANGE;
gBattleMons[battlerId].status1 = STATUS1_BURN;