Removed pointless use of preproc directives

This commit is contained in:
LOuroboros 2022-03-30 02:05:54 -03:00
parent 434f6cf5ad
commit a127cb32bb

View File

@ -7964,9 +7964,7 @@ static u16 CalcMoveBasePower(u16 move, u8 battlerAtk, u8 battlerDef)
// todo
break;
case EFFECT_FLING:
#ifdef ITEM_EXPANSION
basePower = ItemId_GetFlingPower(gBattleMons[battlerAtk].item);
#endif
break;
case EFFECT_ERUPTION:
basePower = gBattleMons[battlerAtk].hp * basePower / gBattleMons[battlerAtk].maxHP;
@ -9644,9 +9642,7 @@ bool32 CanFling(u8 battlerId)
#endif
|| gFieldStatuses & STATUS_FIELD_MAGIC_ROOM
|| gDisableStructs[battlerId].embargoTimer != 0
#ifdef ITEM_EXPANSION
|| ItemId_GetFlingPower(item) != 0
#endif
|| !CanBattlerGetOrLoseItem(battlerId, item))
return FALSE;