Core/Spells: Correct tick damage for health funnel. (thx alp22) Closes #3465
This commit is contained in:
@@ -6473,7 +6473,7 @@ void AuraEffect::HandlePeriodicHealAurasTick(Unit* target, Unit* caster) const
|
|||||||
// damage caster for heal amount
|
// damage caster for heal amount
|
||||||
if (target != caster && GetSpellInfo()->AttributesEx2 & SPELL_ATTR2_HEALTH_FUNNEL)
|
if (target != caster && GetSpellInfo()->AttributesEx2 & SPELL_ATTR2_HEALTH_FUNNEL)
|
||||||
{
|
{
|
||||||
uint32 funnelDamage = GetSpellInfo()->Effects[EFFECT_0].CalcValue(); // damage is not affected by spell power
|
uint32 funnelDamage = GetSpellInfo()->ManaPerSecond; // damage is not affected by spell power
|
||||||
if ((int32)funnelDamage > gain)
|
if ((int32)funnelDamage > gain)
|
||||||
funnelDamage = gain;
|
funnelDamage = gain;
|
||||||
uint32 funnelAbsorb = 0;
|
uint32 funnelAbsorb = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user