add battle engine define check

This commit is contained in:
ghoulslash 2021-09-24 08:58:51 -04:00
parent 4aeeb71393
commit 9ab29e993c

View File

@ -9958,8 +9958,12 @@ static void Cmd_handleballthrow(void)
break;
case ITEM_DREAM_BALL:
#if I_DREAM_BALL_MODIFIER >= GEN_8
#ifdef BATTLE_ENGINE
if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP || GetBattlerAbility(gBattlerTarget) == ABILITY_COMATOSE))
#else
if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP)
ballMultiplier = 40;
#endif
#else
ballMultiplier = 10;
#endif