mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Core/Player): Recalculate all StatModEffects on levelup (#23184)
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user