mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Scripts/BlackTemple): Adjust caster of Blaze spell. (#20172)
* Init. * Account for nullptr victim.
This commit is contained in:
@@ -1335,7 +1335,8 @@ struct npc_flame_of_azzinoth : public ScriptedAI
|
|||||||
DoCastVictim(SPELL_FLAME_BLAST);
|
DoCastVictim(SPELL_FLAME_BLAST);
|
||||||
|
|
||||||
me->m_Events.AddEventAtOffset([&] {
|
me->m_Events.AddEventAtOffset([&] {
|
||||||
DoCastVictim(SPELL_BLAZE);
|
if (Unit* victim = me->GetVictim())
|
||||||
|
victim->CastSpell(victim, SPELL_BLAZE, true);
|
||||||
}, 1s);
|
}, 1s);
|
||||||
}, 15s, 20s);
|
}, 15s, 20s);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user