mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user