aboutsummaryrefslogtreecommitdiff
path: root/src/game/StatSystem.cpp
diff options
context:
space:
mode:
authorBlaymoira <none@none>2008-12-12 20:34:51 +0100
committerBlaymoira <none@none>2008-12-12 20:34:51 +0100
commitab59d3adcc2a4afc743afe1a998290b99ed95929 (patch)
tree198a3ddb3aba4e7505869bcb0d631d5a289b817f /src/game/StatSystem.cpp
parentec12b76b392d65f02ad1b2d48508771f77284b50 (diff)
parentb6c288ca9fb271923f493ee39d78b5dc4b2a996f (diff)
*Merged with 464.
--HG-- branch : trunk
Diffstat (limited to 'src/game/StatSystem.cpp')
-rw-r--r--src/game/StatSystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp
index ca561dd4b36..36818adb36d 100644
--- a/src/game/StatSystem.cpp
+++ b/src/game/StatSystem.cpp
@@ -890,6 +890,7 @@ void Pet::UpdateMaxHealth()
void Pet::UpdateMaxPower(Powers power)
{
UnitMods unitMod = UnitMods(UNIT_MOD_POWER_START + power);
+
float addValue = (power == POWER_MANA) ? GetStat(STAT_INTELLECT) - GetCreateStat(STAT_INTELLECT) : 0.0f;
float value = GetModifierValue(unitMod, BASE_VALUE) + GetCreatePowers(power);