aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-17 16:59:58 -0800
committermaximius <none@none>2009-11-17 16:59:58 -0800
commit5faca1e54d908c4c58d4011da9b4b0d43b39d474 (patch)
treed47b4fb519f82945e6be1547431221a83d49b72a /src
parent0176bde314753d2b90e5930a840ae580723078d5 (diff)
*Correct damage for Steady Shot, thanks lobuz
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index eec4fd837bf..5f2419e3e4d 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -638,10 +638,10 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
float dmg_min = item->GetProto()->Damage->DamageMin;
float dmg_max = item->GetProto()->Damage->DamageMax;
if (dmg_max == 0.0f && dmg_min > dmg_max)
- damage += uint32(dmg_min);
+ damage += int32(dmg_min);
else
- damage += urand(uint32(dmg_min), uint32(dmg_max));
- damage += ((Player*)m_caster)->GetAmmoDPS()*item->GetProto()->Delay/1000;
+ damage += irand(int32(dmg_min), int32(dmg_max));
+ damage += ((Player*)m_caster)->GetAmmoDPS()*item->GetProto()->Delay*float(0.1);
}
}