B_LAST_USED_BALL and .importance (#5834)
This commit is contained in:
parent
b22a867e11
commit
a797e901b2
1 changed files with 2 additions and 1 deletions
|
@ -569,6 +569,7 @@ void HandleAction_ThrowBall(void)
|
||||||
gBattle_BG0_X = 0;
|
gBattle_BG0_X = 0;
|
||||||
gBattle_BG0_Y = 0;
|
gBattle_BG0_Y = 0;
|
||||||
gLastUsedItem = gBallToDisplay;
|
gLastUsedItem = gBallToDisplay;
|
||||||
|
if (!ItemId_GetImportance(gLastUsedItem))
|
||||||
RemoveBagItem(gLastUsedItem, 1);
|
RemoveBagItem(gLastUsedItem, 1);
|
||||||
gBattlescriptCurrInstr = BattleScript_BallThrow;
|
gBattlescriptCurrInstr = BattleScript_BallThrow;
|
||||||
gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT;
|
gCurrentActionFuncId = B_ACTION_EXEC_SCRIPT;
|
||||||
|
|
Loading…
Reference in a new issue