mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-07 12:42:33 +01:00
add battle engine define check
This commit is contained in:
parent
4aeeb71393
commit
9ab29e993c
@ -9958,8 +9958,12 @@ static void Cmd_handleballthrow(void)
|
|||||||
break;
|
break;
|
||||||
case ITEM_DREAM_BALL:
|
case ITEM_DREAM_BALL:
|
||||||
#if I_DREAM_BALL_MODIFIER >= GEN_8
|
#if I_DREAM_BALL_MODIFIER >= GEN_8
|
||||||
|
#ifdef BATTLE_ENGINE
|
||||||
if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP || GetBattlerAbility(gBattlerTarget) == ABILITY_COMATOSE))
|
if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP || GetBattlerAbility(gBattlerTarget) == ABILITY_COMATOSE))
|
||||||
|
#else
|
||||||
|
if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP)
|
||||||
ballMultiplier = 40;
|
ballMultiplier = 40;
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
ballMultiplier = 10;
|
ballMultiplier = 10;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user