current HP increases on level up

This commit is contained in:
AgustinGDLV 2023-03-25 09:53:50 -07:00
parent 0e79697f11
commit 7d4a666b4c

View file

@ -1418,7 +1418,7 @@ static void Task_GiveExpToMon(u8 taskId)
u8 savedActiveBattler;
SetMonData(mon, MON_DATA_EXP, &nextLvlExp);
gBattleStruct->dynamax.beforeLevelHP = GetMonData(mon, MON_DATA_HP);
gBattleStruct->dynamax.beforeLevelHP = GetMonData(mon, MON_DATA_HP) + gBattleScripting.levelUpHP;
CalculateMonStats(mon);
// Prevent Dynamaxed HP from being reset upon level-up.