summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/Entities/Unit/StatSystem.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Entities/Unit/StatSystem.cpp b/src/game/Entities/Unit/StatSystem.cpp
index 9110e2a0ad..fac97df167 100644
--- a/src/game/Entities/Unit/StatSystem.cpp
+++ b/src/game/Entities/Unit/StatSystem.cpp
@@ -292,13 +292,12 @@ 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;
value *= GetModifierValue(unitMod, TOTAL_PCT);
+ sScriptMgr->OnAfterUpdateMaxPower(this, power, value);
SetMaxPower(power, uint32(value));
}