Core/Spells: Fixed damage from warlock's Death Coil
This commit is contained in:
@@ -17119,7 +17119,7 @@ INSERT INTO `spell_bonus_data` (`entry`,`direct_bonus`,`dot_bonus`,`ap_bonus`,`a
|
||||
(980, -1, 0.1, -1, -1, 'Warlock - Curse of Agony'),
|
||||
(603, -1, 2, -1, -1, 'Warlock - Curse of Doom'),
|
||||
(18220, 0.96, -1, -1, -1, 'Warlock - Dark Pact Rank 1'),
|
||||
(6789, 0.214, -1, -1, -1, 'Warlock - Death Coil'),
|
||||
(6789, 0.2143, -1, -1, -1, 'Warlock - Death Coil'),
|
||||
(689, -1, 0.143, -1, -1, 'Warlock - Drain Life'),
|
||||
(5138, 0, 0, 0, 0, 'Warlock - Drain Mana'),
|
||||
(1120, -1, 0.429, -1, -1, 'Warlock - Drain Soul'),
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
UPDATE `spell_bonus_data` SET `direct_bonus` = 0.2143 WHERE `entry` = 6789;
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user