From b0a7f19f347fbe5c854d6a5d50b84fb2542cfc06 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:36:13 -0300 Subject: [PATCH] fix(Scripts/TheEye): Fix Ember of Alar ember blast percent damage (#18588) --- src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp index 39b23d5e8..30f18d415 100644 --- a/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp +++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp @@ -467,9 +467,8 @@ class spell_alar_ember_blast : public SpellScript { PrepareSpellScript(spell_alar_ember_blast); - void HandleForceCast(SpellEffIndex effIndex) + void HandleCast() { - PreventHitEffect(effIndex); if (InstanceScript* instance = GetCaster()->GetInstanceScript()) { if (Creature* alar = instance->GetCreature(DATA_ALAR)) @@ -481,7 +480,7 @@ class spell_alar_ember_blast : public SpellScript void Register() override { - OnEffectHitTarget += SpellEffectFn(spell_alar_ember_blast::HandleForceCast, EFFECT_2, SPELL_EFFECT_FORCE_CAST); + AfterCast += SpellCastFn(spell_alar_ember_blast::HandleCast); } };