From f5a5932e4d71c3c1311aa7dbb349710dbd7e5311 Mon Sep 17 00:00:00 2001 From: Alex <93446519+AlexOn1ine@users.noreply.github.com> Date: Mon, 1 Apr 2024 23:42:14 +0200 Subject: [PATCH] Fixes Soft Level Cap issue (#4327) --- src/battle_controller_player.c | 2 +- src/battle_interface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle_controller_player.c b/src/battle_controller_player.c index c9778f898e..eeca1899b1 100644 --- a/src/battle_controller_player.c +++ b/src/battle_controller_player.c @@ -2146,7 +2146,7 @@ void PlayerHandleExpUpdate(u32 battler) u8 monId = gBattleResources->bufferA[battler][1]; s32 taskId, expPointsToGive; - if (GetMonData(&gPlayerParty[monId], MON_DATA_LEVEL) >= GetCurrentLevelCap()) + if (GetMonData(&gPlayerParty[monId], MON_DATA_LEVEL) >= MAX_LEVEL) { PlayerBufferExecCompleted(battler); } diff --git a/src/battle_interface.c b/src/battle_interface.c index 50de6945a8..99ba59f489 100644 --- a/src/battle_interface.c +++ b/src/battle_interface.c @@ -2688,7 +2688,7 @@ static void MoveBattleBarGraphically(u8 battlerId, u8 whichBar) &gBattleSpritesDataPtr->battleBars[battlerId].currValue, array, B_EXPBAR_PIXELS / 8); level = GetMonData(&gPlayerParty[gBattlerPartyIndexes[battlerId]], MON_DATA_LEVEL); - if (level >= GetCurrentLevelCap()) + if (level >= MAX_LEVEL) { for (i = 0; i < 8; i++) array[i] = 0;