mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-09 19:46:27 -05:00
Fixed Flute Items being consumed in battle (#4496)
This commit is contained in:
@@ -4595,7 +4595,8 @@ void ItemUseCB_BattleScript(u8 taskId, TaskFunc task)
|
||||
gBattleStruct->itemPartyIndex[gBattlerInMenuId] = GetPartyIdFromBattleSlot(gPartyMenu.slotId);
|
||||
gPartyMenuUseExitCallback = TRUE;
|
||||
PlaySE(SE_SELECT);
|
||||
RemoveBagItem(gSpecialVar_ItemId, 1);
|
||||
if (!IsItemFlute(gSpecialVar_ItemId))
|
||||
RemoveBagItem(gSpecialVar_ItemId, 1);
|
||||
ScheduleBgCopyTilemapToVram(2);
|
||||
gTasks[taskId].func = task;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user