New hook OnAfterUpdateMaxHealth

This commit is contained in:
Matteo Emili
2017-01-23 01:35:56 +01:00
committed by Yehonal
parent cb6fbe79e5
commit f3b2dd4f1f
3 changed files with 10 additions and 0 deletions

View File

@@ -283,6 +283,7 @@ void Player::UpdateMaxHealth()
value += GetModifierValue(unitMod, TOTAL_VALUE) + GetHealthBonusFromStamina();
value *= GetModifierValue(unitMod, TOTAL_PCT);
sScriptMgr->OnAfterUpdateMaxHealth(this, value);
SetMaxHealth((uint32)value);
}