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);
|
DoCastVictim(SPELL_FLAME_BLAST);
|
||||||
|
|
||||||
me->m_Events.AddEventAtOffset([&] {
|
me->m_Events.AddEventAtOffset([&] {
|
||||||
if (Unit* target = me->GetVictim())
|
DoCastVictim(SPELL_BLAZE);
|
||||||
target->CastSpell(target, SPELL_BLAZE, true);
|
|
||||||
}, 1s);
|
}, 1s);
|
||||||
}, 15s, 20s);
|
}, 15s, 20s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void UpdateAI(uint32 diff) override
|
||||||
|
{
|
||||||
|
scheduler.Update(diff);
|
||||||
|
|
||||||
|
if (!UpdateVictim())
|
||||||
|
return;
|
||||||
|
|
||||||
|
DoMeleeAttackIfReady();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ObjectGuid _bladeGUID;
|
ObjectGuid _bladeGUID;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user