diff options
author | Blaymoira <none@none> | 2008-12-12 20:34:51 +0100 |
---|---|---|
committer | Blaymoira <none@none> | 2008-12-12 20:34:51 +0100 |
commit | ab59d3adcc2a4afc743afe1a998290b99ed95929 (patch) | |
tree | 198a3ddb3aba4e7505869bcb0d631d5a289b817f /src/game/StatSystem.cpp | |
parent | ec12b76b392d65f02ad1b2d48508771f77284b50 (diff) | |
parent | b6c288ca9fb271923f493ee39d78b5dc4b2a996f (diff) |
*Merged with 464.
--HG--
branch : trunk
Diffstat (limited to 'src/game/StatSystem.cpp')
-rw-r--r-- | src/game/StatSystem.cpp | 1 |
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); |