diff --git a/include/constants/item_config.h b/include/constants/item_config.h index 04eb7a5470..8689de640c 100644 --- a/include/constants/item_config.h +++ b/include/constants/item_config.h @@ -28,5 +28,6 @@ #define P_DIVE_BALL_MODIFIER GEN_3 // In Gen4+, Dive Ball's effectiveness increases by when Surfing or Fishing. #define P_DUSK_BALL_MODIFIER GEN_7 // In Gen7+, Net Ball's catch multiplier is x3 instead of x3.5. #define P_QUICK_BALL_MODIFIER GEN_7 // In Gen5+, Quick Ball's catch multiplier is x5 instead of x4. +#define P_DREAM_BALL_MODIFIER GEN_8 // In Gen8+, Dream Ball's catch multiplier is x4 when the target is asleep. #endif // GUARD_CONSTANTS_ITEM_CONFIG_H diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 0e087266b7..750f1a6fd5 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -9926,6 +9926,14 @@ static void Cmd_handleballthrow(void) ballMultiplier = 35; #endif break; + case ITEM_DREAM_BALL: + #if P_DREAM_BALL_MODIFIER >= GEN_8 + if (gBattleMons[gBattlerTarget].status1 & STATUS1_SLEEP) + ballMultiplier = 40; + #else + ballMultiplier = 10; + #endif + break; } } else