diff options
author | maximius <none@none> | 2009-11-17 16:59:58 -0800 |
---|---|---|
committer | maximius <none@none> | 2009-11-17 16:59:58 -0800 |
commit | 5faca1e54d908c4c58d4011da9b4b0d43b39d474 (patch) | |
tree | d47b4fb519f82945e6be1547431221a83d49b72a /src | |
parent | 0176bde314753d2b90e5930a840ae580723078d5 (diff) |
*Correct damage for Steady Shot, thanks lobuz
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 6 |
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); } } |