Merge pull request #8483 from kkhugs/4.3.4

Small levelup health fix with heirlooms
This commit is contained in:
Nay committed 2012-11-27 08:32:53 -08:00
commit f4602811d5
1 file changed
+2 -2
+2 -2
View File
@@ -3179,6 +3179,8 @@ void Player::GiveLevel(uint8 level)
if (sWorld->getBoolConfig(CONFIG_ALWAYS_MAXSKILL)) // Max weapon skill when leveling up
UpdateSkillsToMaxSkillsForLevel();
_ApplyAllLevelScaleItemMods(true); // Moved to above SetFullHealth so player will have full health from Heirlooms
// set current level health and mana/energy to maximum after applying all mods.
SetFullHealth();
SetPower(POWER_MANA, GetMaxPower(POWER_MANA));
@@ -3187,8 +3189,6 @@ void Player::GiveLevel(uint8 level)
SetPower(POWER_RAGE, GetMaxPower(POWER_RAGE));
SetPower(POWER_FOCUS, 0);
_ApplyAllLevelScaleItemMods(true);
// update level to hunter/summon pet
if (Pet* pet = GetPet())
pet->SynchronizeLevelWithOwner();