diff options
| author | Matteo Emili <matteo.emili14@gmail.com> | 2017-01-23 01:35:56 +0100 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2017-03-26 01:09:34 +0100 |
| commit | f3b2dd4f1f83d94b32625b23b51851b8c27cf7fd (patch) | |
| tree | 5bb69fbaee9830242012ef71045d021fe154a4b0 /src/game/Entities/Unit/StatSystem.cpp | |
| parent | cb6fbe79e583198744bb566baa96260252e01a72 (diff) | |
New hook OnAfterUpdateMaxHealth
Diffstat (limited to 'src/game/Entities/Unit/StatSystem.cpp')
| -rw-r--r-- | src/game/Entities/Unit/StatSystem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Entities/Unit/StatSystem.cpp b/src/game/Entities/Unit/StatSystem.cpp index fac97df167..3518124e27 100644 --- a/src/game/Entities/Unit/StatSystem.cpp +++ b/src/game/Entities/Unit/StatSystem.cpp @@ -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); } |
