mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-28 00:24:11 +01:00
Fix Rare Candies
This commit is contained in:
parent
2eabcea86e
commit
73ba8264e0
@ -4948,7 +4948,7 @@ static void TryUseItemOnMove(u8 taskId)
|
|||||||
DisplayPartyMenuMessage(gStringVar4, TRUE);
|
DisplayPartyMenuMessage(gStringVar4, TRUE);
|
||||||
ScheduleBgCopyTilemapToVram(2);
|
ScheduleBgCopyTilemapToVram(2);
|
||||||
gTasks[taskId].func = Task_ClosePartyMenuAfterText;
|
gTasks[taskId].func = Task_ClosePartyMenuAfterText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Outside of battle, only PP items are used on moves.
|
// Outside of battle, only PP items are used on moves.
|
||||||
else
|
else
|
||||||
@ -5290,7 +5290,7 @@ void ItemUseCB_RareCandy(u8 taskId, TaskFunc task)
|
|||||||
if (sInitialLevel != MAX_LEVEL)
|
if (sInitialLevel != MAX_LEVEL)
|
||||||
{
|
{
|
||||||
BufferMonStatsToTaskData(mon, arrayPtr);
|
BufferMonStatsToTaskData(mon, arrayPtr);
|
||||||
cannotUseEffect = ExecuteTableBasedItemEffect(mon, gPartyMenu.slotId, *itemPtr, 0);
|
cannotUseEffect = ExecuteTableBasedItemEffect(mon, *itemPtr, gPartyMenu.slotId, 0);
|
||||||
BufferMonStatsToTaskData(mon, &ptr->data[NUM_STATS]);
|
BufferMonStatsToTaskData(mon, &ptr->data[NUM_STATS]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user