fix lvl display when using xp candy

This commit is contained in:
cawtds
2024-06-14 17:25:22 +02:00
parent 6a586e1264
commit 180614b26e

View File

@@ -5488,7 +5488,11 @@ static void CB2_ReturnToPartyMenuWhileLearningMove(void)
gPartyMenu.action = PARTY_ACTION_CHOOSE_MON;
}
else
{
if (sFinalLevel != 0)
SetMonData(&gPlayerParty[gPartyMenu.slotId], MON_DATA_LEVEL, &sFinalLevel); // to avoid displaying incorrect level
InitPartyMenu(PARTY_MENU_TYPE_FIELD, PARTY_LAYOUT_SINGLE, PARTY_ACTION_CHOOSE_MON, TRUE, PARTY_MSG_NONE, Task_ReturnToPartyMenuWhileLearningMove, gPartyMenu.exitCallback);
}
}
static void Task_ReturnToPartyMenuWhileLearningMove(u8 taskId)