fix(Scripts/BlackTemple): Adjust caster of Blaze spell. (#20172)
* Init. * Account for nullptr victim.
This commit is contained in:
parent
6ef16f18bb
commit
eebb5596bf
1 changed files with 2 additions and 1 deletions
|
|
@ -1335,7 +1335,8 @@ struct npc_flame_of_azzinoth : public ScriptedAI
|
|||
DoCastVictim(SPELL_FLAME_BLAST);
|
||||
|
||||
me->m_Events.AddEventAtOffset([&] {
|
||||
DoCastVictim(SPELL_BLAZE);
|
||||
if (Unit* victim = me->GetVictim())
|
||||
victim->CastSpell(victim, SPELL_BLAZE, true);
|
||||
}, 1s);
|
||||
}, 15s, 20s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue