diff options
| author | Muhaha <none@none> | 2009-10-17 18:20:49 +0200 |
|---|---|---|
| committer | Muhaha <none@none> | 2009-10-17 18:20:49 +0200 |
| commit | 396310a5c9211c3bb3fc0a072109973750ba51b9 (patch) | |
| tree | f286ca52f3e598e0ba51f5f6c2e06abeecee366d /src | |
| parent | 338a6462849680ee5ca53a4e9ac61fda48a547dd (diff) | |
typo
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 47444157345..d9aedd5fc98 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -516,8 +516,8 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) // Shadow Word: Death - deals damage equal to damage done to caster if ((m_spellInfo->SpellFamilyFlags[1] & 0x2 )) { - uint32 back_damage = uint32(damage + m_caster->SpellDamageBonus(unitTarget, m_spellInfo, (uint32)damage, SPELL_DIRECT_DAMAGE)); - if(back_damage >= unitTarget->GetHealth()) + int32 back_damage = int32(damage + m_caster->SpellDamageBonus(unitTarget, m_spellInfo, (uint32)damage, SPELL_DIRECT_DAMAGE)); + if(back_damage < unitTarget->GetHealth()) m_caster->CastCustomSpell(m_caster, 32409, &back_damage, 0, 0, true); } break; |
