Core/Spells: fix deep wounds damage. thanks warpten.

This commit is contained in:
Kandera
2012-05-17 09:40:44 -04:00
parent 609002067d
commit 619fdd185b
@@ -180,9 +180,6 @@ class spell_warr_deep_wounds : public SpellScriptLoader
if (Unit* target = GetHitUnit()) if (Unit* target = GetHitUnit())
if (Unit* caster = GetCaster()) if (Unit* caster = GetCaster())
{ {
// apply percent damage mods
damage = caster->SpellDamageBonusDone(target, GetSpellInfo(), damage, SPELL_DIRECT_DAMAGE);
ApplyPctN(damage, 16 * sSpellMgr->GetSpellRank(GetSpellInfo()->Id)); ApplyPctN(damage, 16 * sSpellMgr->GetSpellRank(GetSpellInfo()->Id));
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(SPELL_DEEP_WOUNDS_RANK_PERIODIC); SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(SPELL_DEEP_WOUNDS_RANK_PERIODIC);
@@ -194,8 +191,6 @@ class spell_warr_deep_wounds : public SpellScriptLoader
damage = damage / ticks; damage = damage / ticks;
damage = target->SpellDamageBonusTaken(caster, GetSpellInfo(), damage, SPELL_DIRECT_DAMAGE);
caster->CastCustomSpell(target, SPELL_DEEP_WOUNDS_RANK_PERIODIC, &damage, NULL, NULL, true); caster->CastCustomSpell(target, SPELL_DEEP_WOUNDS_RANK_PERIODIC, &damage, NULL, NULL, true);
} }
} }