Move _ApplyAllLevelScaleItemMods to above SetFullHealth so player will have full health regardless of heirlooms equipped (blizzlike)

This commit is contained in:
QT committed 2012-11-27 09:27:38 -07:00
1 parent aab59442a4
commit 8b555ffa9f
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();