mirror of
https://github.com/pret/pokeemerald.git
synced 2026-10-01 14:27:47 -05:00
Fixed moves learned at the same level being skipped while using exp candies
This commit is contained in:
@@ -5292,11 +5292,14 @@ static void Task_TryLearningNextMove(u8 taskId)
|
||||
switch (result)
|
||||
{
|
||||
case 0: // No moves to learn
|
||||
if (sInitialLevel >= sFinalLevel)
|
||||
PartyMenuTryEvolution(taskId);
|
||||
break;
|
||||
case MON_HAS_MAX_MOVES:
|
||||
DisplayMonNeedsToReplaceMove(taskId);
|
||||
break;
|
||||
case MON_ALREADY_KNOWS_MOVE:
|
||||
gTasks[taskId].func = Task_TryLearningNextMove;
|
||||
return;
|
||||
default:
|
||||
DisplayMonLearnedMove(taskId, result);
|
||||
@@ -5305,8 +5308,6 @@ static void Task_TryLearningNextMove(u8 taskId)
|
||||
if (result)
|
||||
break;
|
||||
}
|
||||
if (sInitialLevel >= sFinalLevel)
|
||||
PartyMenuTryEvolution(taskId);
|
||||
}
|
||||
|
||||
static void PartyMenuTryEvolution(u8 taskId)
|
||||
|
||||
Reference in New Issue
Block a user