Merge pull request #1686 from LOuroboros/patch-2

Fix Dream Ball's effect's code
This commit is contained in:
Eduardo Quezada D'Ottone 2021-09-25 21:25:33 -03:00 committed by GitHub
commit 869cb1ede6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9959,7 +9959,7 @@ static void Cmd_handleballthrow(void)
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 #ifdef BATTLE_ENGINE
if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP || GetBattlerAbility(gBattlerTarget) == ABILITY_COMATOSE)) if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP || GetBattlerAbility(gBattlerTarget) == ABILITY_COMATOSE)
#else #else
if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP) if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP)
ballMultiplier = 40; ballMultiplier = 40;