mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-06 07:27:47 +01:00
Further updated CanFling
This commit is contained in:
parent
8eaf0718ec
commit
7916ff5f47
@ -9625,13 +9625,8 @@ bool32 CanFling(u8 battlerId)
|
||||
#endif
|
||||
|| gFieldStatuses & STATUS_FIELD_MAGIC_ROOM
|
||||
|| gDisableStructs[battlerId].embargoTimer != 0
|
||||
|| !CanBattlerGetOrLoseItem(battlerId, item)
|
||||
//|| itemEffect == HOLD_EFFECT_PRIMAL_ORB
|
||||
|| itemEffect == HOLD_EFFECT_GEMS
|
||||
#ifdef ITEM_ABILITY_CAPSULE
|
||||
|| item == ITEM_ABILITY_CAPSULE
|
||||
#endif
|
||||
|| GetPocketByItemId(item) == POCKET_POKE_BALLS)
|
||||
|| ItemId_GetFlingPower(item) != 0
|
||||
|| !CanBattlerGetOrLoseItem(battlerId, item))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user