summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Quezada D'Ottone <eduardo602002@gmail.com>2020-11-11 20:23:04 -0300
committerEduardo Quezada D'Ottone <eduardo602002@gmail.com>2020-11-11 20:23:04 -0300
commitf22d55b74b05b8ff4919ca5bfdde02624238518d (patch)
tree89af823207ba2a37e536f865b2e94412b4aeaa4a
parentd261d82b460e25c2850d7af8c34286f720d36182 (diff)
Updated Repeated Field Medicine Use (markdown)
-rw-r--r--Repeated-Field-Medicine-Use.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/Repeated-Field-Medicine-Use.md b/Repeated-Field-Medicine-Use.md
index 8a14a46..312715e 100644
--- a/Repeated-Field-Medicine-Use.md
+++ b/Repeated-Field-Medicine-Use.md
@@ -69,4 +69,12 @@ You may also want to use this for Rare Candies, so all you have to do is find `P
gTasks[taskId].func = Task_ReturnToChooseMonAfterText;
else
gTasks[taskId].func = Task_ClosePartyMenuAfterText;
+```
+
+And finally, when using a Rare Candy on a Level 100 Pokémon it would normally go back to the Bag menu. To avoid that, we search for `ItemUseCB_RareCandy` and replace `gTasks[taskId].func = task;` with:
+```c
+ if (gPartyMenu.menuType == PARTY_MENU_TYPE_FIELD)
+ gTasks[taskId].func = Task_ReturnToChooseMonAfterText;
+ else
+ gTasks[taskId].func = task;
``` \ No newline at end of file