fix(Scripts/TheEye): Fix Ember of Alar ember blast percent damage (#18588)
This commit is contained in:
parent
1a537236a8
commit
b0a7f19f34
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue