diff options
Diffstat (limited to 'src/game/Entities/Unit/StatSystem.cpp')
| -rw-r--r-- | src/game/Entities/Unit/StatSystem.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Entities/Unit/StatSystem.cpp b/src/game/Entities/Unit/StatSystem.cpp index 9d6fa6a169..9110e2a0ad 100644 --- a/src/game/Entities/Unit/StatSystem.cpp +++ b/src/game/Entities/Unit/StatSystem.cpp @@ -12,6 +12,7 @@ #include "SpellAuras.h" #include "SpellAuraEffects.h" #include "SpellMgr.h" +#include "ScriptMgr.h" inline bool _ModifyUInt32(bool apply, uint32& baseValue, int32& amount) { @@ -291,6 +292,8 @@ void Player::UpdateMaxPower(Powers power) float bonusPower = (power == POWER_MANA && GetCreatePowers(power) > 0) ? GetManaBonusFromIntellect() : 0; + sScriptMgr->OnAfterUpdateMaxPower(this, power, bonusPower); + float value = GetModifierValue(unitMod, BASE_VALUE) + GetCreatePowers(power); value *= GetModifierValue(unitMod, BASE_PCT); value += GetModifierValue(unitMod, TOTAL_VALUE) + bonusPower; |
