diff options
author | Muhaha <none@none> | 2009-10-17 18:16:28 +0200 |
---|---|---|
committer | Muhaha <none@none> | 2009-10-17 18:16:28 +0200 |
commit | 338a6462849680ee5ca53a4e9ac61fda48a547dd (patch) | |
tree | 2ae599dc27226e047bbb4330cb68aea08406404a | |
parent | 6438a91592ae9e65ba6a77f2babebb831b61e816 (diff) |
Fix Shadow Word: Death (Backfire Damage). Original Author: Nevan.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellEffects.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 6dd1a6cc85a..47444157345 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -515,7 +515,11 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) { // Shadow Word: Death - deals damage equal to damage done to caster if ((m_spellInfo->SpellFamilyFlags[1] & 0x2 )) - m_caster->CastCustomSpell(m_caster, 32409, &damage, 0, 0, true); + { + uint32 back_damage = uint32(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; } case SPELLFAMILY_DRUID: |