mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-21 19:54:14 +01:00
Removed pointless use of preproc directives
This commit is contained in:
parent
434f6cf5ad
commit
a127cb32bb
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user