Skip to content

Commit

Permalink
Update battle_util.c
Browse files Browse the repository at this point in the history
  • Loading branch information
AERDU authored Dec 20, 2024
1 parent b22a867 commit 78f150f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/battle_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 78f150f

Please sign in to comment.