aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-26 13:03:47 -0600
committermegamage <none@none>2008-11-26 13:03:47 -0600
commit925a01348309dcd5ae4938fd903a97871c95e4fd (patch)
treee917f2aa8da8e9dd5d324ff62eef40c5215625f4 /src
parent504a5a69db87de2cb1a1bc3ff6290debe5531309 (diff)
*Fix a typo. Now -AP spells (roar/shout/screech) should work correctly.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/StatSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp
index 64bad232994..af1f2302482 100644
--- a/src/game/StatSystem.cpp
+++ b/src/game/StatSystem.cpp
@@ -748,7 +748,7 @@ void Creature::UpdateDamagePhysical(WeaponAttackType attType)
//float base_value = GetModifierValue(unitMod, BASE_VALUE) + GetTotalAttackPowerValue(attType)/ 14.0f * att_speed;
float base_value = GetModifierValue(unitMod, BASE_VALUE)
+ (weapon_mindamage + weapon_maxdamage) / 6
- / GetTotalAttackPowerValue(attType) * getLevel() * 5;
+ * GetTotalAttackPowerValue(attType) / (getLevel() * 5);
float base_pct = GetModifierValue(unitMod, BASE_PCT);
float total_value = GetModifierValue(unitMod, TOTAL_VALUE);
float total_pct = GetModifierValue(unitMod, TOTAL_PCT);