Fix Shadow Word: Death (Backfire Damage). Original Author: Nevan.

--HG--
branch : trunk
This commit is contained in:
Muhaha
2009-10-17 18:16:28 +02:00
parent 6438a91592
commit 338a646284
+5 -1
View File
@@ -515,7 +515,11 @@ 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 ))
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; break;
} }
case SPELLFAMILY_DRUID: case SPELLFAMILY_DRUID: