Core/Spells: Fixed damage from warlock's Death Coil

This commit is contained in:
tobmaps
2011-05-10 22:28:28 +07:00
parent d49f535949
commit 8fc000b216
4 changed files with 6 additions and 1 deletions
+2
View File
@@ -11029,6 +11029,8 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint
scripted = true;
break;
}
if (spellProto->Effect[i] == SPELL_EFFECT_HEALTH_LEECH)
scripted = true;
}
// Check for table values
+2
View File
@@ -2354,6 +2354,8 @@ void Spell::EffectHealthLeech(SpellEffIndex effIndex)
if (!unitTarget || !unitTarget->isAlive() || damage < 0)
return;
damage = m_caster->SpellDamageBonus(unitTarget, m_spellInfo, uint32(damage), SPELL_DIRECT_DAMAGE);
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "HealthLeech :%i", damage);
float healMultiplier = SpellMgr::CalculateSpellEffectValueMultiplier(m_spellInfo, effIndex, m_originalCaster, this);