From 298ee34097673ed396eba5a84dc750e676651f35 Mon Sep 17 00:00:00 2001 From: sneed <56992013+Sneed69@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:37:46 +0300 Subject: [PATCH] fix givemon not giving Cherish Ball (#5022) --- src/script_pokemon_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script_pokemon_util.c b/src/script_pokemon_util.c index 86eed19143..9916181733 100644 --- a/src/script_pokemon_util.c +++ b/src/script_pokemon_util.c @@ -368,7 +368,7 @@ u32 ScriptGiveMonParameterized(u16 species, u8 level, u16 item, u8 ball, u8 natu SetMonData(&mon, MON_DATA_ABILITY_NUM, &abilityNum); // ball - if (ball >= POKEBALL_COUNT) + if (ball > LAST_BALL) ball = ITEM_POKE_BALL; SetMonData(&mon, MON_DATA_POKEBALL, &ball);