mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-06 23:07:59 +00:00
New hook OnAfterUpdateMaxHealth
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user