Core/Spells: Ensure Haunt's healing takes in consideration crit damage

This commit is contained in:
Trisjdc committed 2014-06-27 00:40:59 +01:00
1 parent 4ed4b165f1
commit 0a641bace9
1 file changed
+2 -2
+2 -2
View File
@@ -518,7 +518,7 @@ class spell_warl_haunt : public SpellScriptLoader
{
PrepareSpellScript(spell_warl_haunt_SpellScript);
void HandleOnHit()
void HandleAfterHit()
{
if (Aura* aura = GetHitAura())
if (AuraEffect* aurEff = aura->GetEffect(EFFECT_1))
@@ -527,7 +527,7 @@ class spell_warl_haunt : public SpellScriptLoader
void Register() override
{
OnHit += SpellHitFn(spell_warl_haunt_SpellScript::HandleOnHit);
AfterHit += SpellHitFn(spell_warl_haunt_SpellScript::HandleAfterHit);
}
};