mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-04-26 02:14:22 -05:00
Fixes Soft Level Cap issue (#4327)
This commit is contained in:
parent
e1f6480e32
commit
f5a5932e4d
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user