Core/Spells:

* fixed a logic mistake for Howling Blast's damage handling
* Rolling Thunder will now only proc when Lightning Shield is active
This commit is contained in:
Ovahlord committed 2019-05-10 08:03:25 +02:00
1 parent cf1a3d2d64
commit 45dd82e59c
2 files changed
+40 -46

No files matched your search

+3 -4
View File
@@ -1384,14 +1384,13 @@ class spell_dk_howling_blast : public SpellScript
void HandleDamage(SpellEffIndex /*effIndex*/)
{
if (GetExplTargetUnit() && GetHitUnit())
if (GetExplTargetUnit() != GetHitUnit())
SetEffectValue(CalculatePct(GetEffectValue(), GetSpellInfo()->Effects[EFFECT_2].BasePoints));
if (GetExplTargetUnit() != GetHitUnit())
SetHitDamage(CalculatePct(GetHitDamage(), GetSpellInfo()->Effects[EFFECT_2].BasePoints));
}
void Register() override
{
OnEffectLaunchTarget += SpellEffectFn(spell_dk_howling_blast::HandleDamage, EFFECT_1, SPELL_EFFECT_SCHOOL_DAMAGE);
OnEffectHitTarget += SpellEffectFn(spell_dk_howling_blast::HandleDamage, EFFECT_1, SPELL_EFFECT_SCHOOL_DAMAGE);
}
};