fix(Scripts/BlackTemple): fix blaze and flame bast casting for Flame of Azzinoth (#19967)
fix(Scripts/Core): fix blaze and flame bast casting for Flame of Azzinoth
This commit is contained in:
parent
8030ef4ba0
commit
bd40fef081
1 changed files with 11 additions and 2 deletions
|
|
@ -1298,12 +1298,21 @@ struct npc_flame_of_azzinoth : public ScriptedAI
|
|||
DoCastVictim(SPELL_FLAME_BLAST);
|
||||
|
||||
me->m_Events.AddEventAtOffset([&] {
|
||||
if (Unit* target = me->GetVictim())
|
||||
target->CastSpell(target, SPELL_BLAZE, true);
|
||||
DoCastVictim(SPELL_BLAZE);
|
||||
}, 1s);
|
||||
}, 15s, 20s);
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
scheduler.Update(diff);
|
||||
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
private:
|
||||
ObjectGuid _bladeGUID;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue