Fix heirlooms to apply stats before giving health.
This commit is contained in:
@@ -3279,6 +3279,8 @@ void Player::GiveLevel(uint8 level)
|
|||||||
if (sWorld->getBoolConfig(CONFIG_ALWAYS_MAXSKILL)) // Max weapon skill when leveling up
|
if (sWorld->getBoolConfig(CONFIG_ALWAYS_MAXSKILL)) // Max weapon skill when leveling up
|
||||||
UpdateSkillsToMaxSkillsForLevel();
|
UpdateSkillsToMaxSkillsForLevel();
|
||||||
|
|
||||||
|
_ApplyAllLevelScaleItemMods(true);
|
||||||
|
|
||||||
// set current level health and mana/energy to maximum after applying all mods.
|
// set current level health and mana/energy to maximum after applying all mods.
|
||||||
SetFullHealth();
|
SetFullHealth();
|
||||||
SetPower(POWER_MANA, GetMaxPower(POWER_MANA));
|
SetPower(POWER_MANA, GetMaxPower(POWER_MANA));
|
||||||
@@ -3288,8 +3290,6 @@ void Player::GiveLevel(uint8 level)
|
|||||||
SetPower(POWER_FOCUS, 0);
|
SetPower(POWER_FOCUS, 0);
|
||||||
SetPower(POWER_HAPPINESS, 0);
|
SetPower(POWER_HAPPINESS, 0);
|
||||||
|
|
||||||
_ApplyAllLevelScaleItemMods(true);
|
|
||||||
|
|
||||||
// update level to hunter/summon pet
|
// update level to hunter/summon pet
|
||||||
if (Pet* pet = GetPet())
|
if (Pet* pet = GetPet())
|
||||||
pet->SynchronizeLevelWithOwner();
|
pet->SynchronizeLevelWithOwner();
|
||||||
|
|||||||
Reference in New Issue
Block a user