--HG--
branch : trunk
This commit is contained in:
Muhaha
2009-10-17 18:20:49 +02:00
parent 338a646284
commit 396310a5c9
+2 -2
View File
@@ -516,8 +516,8 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
// Shadow Word: Death - deals damage equal to damage done to caster // Shadow Word: Death - deals damage equal to damage done to caster
if ((m_spellInfo->SpellFamilyFlags[1] & 0x2 )) if ((m_spellInfo->SpellFamilyFlags[1] & 0x2 ))
{ {
uint32 back_damage = uint32(damage + m_caster->SpellDamageBonus(unitTarget, m_spellInfo, (uint32)damage, SPELL_DIRECT_DAMAGE)); int32 back_damage = int32(damage + m_caster->SpellDamageBonus(unitTarget, m_spellInfo, (uint32)damage, SPELL_DIRECT_DAMAGE));
if(back_damage >= unitTarget->GetHealth()) if(back_damage < unitTarget->GetHealth())
m_caster->CastCustomSpell(m_caster, 32409, &back_damage, 0, 0, true); m_caster->CastCustomSpell(m_caster, 32409, &back_damage, 0, 0, true);
} }
break; break;