fix(Scripts/TheEye): Fix Ember of Alar ember blast percent damage (#18588)

This commit is contained in:
Andrew
2024-03-20 13:36:13 -03:00
committed by GitHub
parent 1a537236a8
commit b0a7f19f34

View File

@@ -467,9 +467,8 @@ class spell_alar_ember_blast : public SpellScript
{ {
PrepareSpellScript(spell_alar_ember_blast); PrepareSpellScript(spell_alar_ember_blast);
void HandleForceCast(SpellEffIndex effIndex) void HandleCast()
{ {
PreventHitEffect(effIndex);
if (InstanceScript* instance = GetCaster()->GetInstanceScript()) if (InstanceScript* instance = GetCaster()->GetInstanceScript())
{ {
if (Creature* alar = instance->GetCreature(DATA_ALAR)) if (Creature* alar = instance->GetCreature(DATA_ALAR))
@@ -481,7 +480,7 @@ class spell_alar_ember_blast : public SpellScript
void Register() override void Register() override
{ {
OnEffectHitTarget += SpellEffectFn(spell_alar_ember_blast::HandleForceCast, EFFECT_2, SPELL_EFFECT_FORCE_CAST); AfterCast += SpellCastFn(spell_alar_ember_blast::HandleCast);
} }
}; };