aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp6
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: