From 338a6462849680ee5ca53a4e9ac61fda48a547dd Mon Sep 17 00:00:00 2001 From: Muhaha Date: Sat, 17 Oct 2009 18:16:28 +0200 Subject: Fix Shadow Word: Death (Backfire Damage). Original Author: Nevan. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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: -- cgit v1.2.3