fix(Core/Player): Recalculate all StatModEffects on levelup (#23184)

This commit is contained in:
Tereneckla 2025-10-11 16:13:23 +00:00 committed by GitHub
parent 43a54d4329
commit 1434cde99e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2500,6 +2500,7 @@ void Player::GiveLevel(uint8 level)
m_Played_time[PLAYED_TIME_LEVEL] = 0; // Level Played Time reset
_ApplyAllLevelScaleItemMods(false);
_RemoveAllAuraStatMods();
SetLevel(level);
@ -2522,6 +2523,7 @@ void Player::GiveLevel(uint8 level)
UpdateSkillsToMaxSkillsForLevel();
_ApplyAllLevelScaleItemMods(true);
_ApplyAllAuraStatMods();
if (!isDead())
{