From a797e901b25a793441b1b20644025bf23cebaa7c Mon Sep 17 00:00:00 2001 From: AERDU Date: Fri, 20 Dec 2024 08:46:58 +0000 Subject: [PATCH] B_LAST_USED_BALL and .importance (#5834) --- src/battle_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/battle_util.c b/src/battle_util.c index def2742a1b..5644696776 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -569,7 +569,8 @@ void HandleAction_ThrowBall(void) gBattle_BG0_X = 0; gBattle_BG0_Y = 0; gLastUsedItem = gBallToDisplay; - RemoveBagItem(gLastUsedItem, 1); + if (!ItemId_GetImportance(gLastUsedItem)) + RemoveBagItem(gLastUsedItem, 1); gBattlescriptCurrInstr = BattleScript_BallThrow; gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT; }