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:
1 parent
cf1a3d2d64
commit
45dd82e59c
2 files changed
+40
-46
No files matched your search
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user