mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
refactor(Scripts/World): Clean up script files (#17728)
* refactor(Scripts/World): Clean up script files * Update boss_azuregos.cpp
This commit is contained in:
@@ -54,15 +54,15 @@ public:
|
||||
{
|
||||
boss_azuregosAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
_scheduler.SetValidator([this]
|
||||
{
|
||||
return !me->HasUnitState(UNIT_STATE_CASTING);
|
||||
});
|
||||
scheduler.SetValidator([this]
|
||||
{
|
||||
return !me->HasUnitState(UNIT_STATE_CASTING);
|
||||
});
|
||||
}
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
_scheduler.CancelAll();
|
||||
scheduler.CancelAll();
|
||||
me->SetNpcFlag(UNIT_NPC_FLAG_GOSSIP);
|
||||
me->RestoreFaction();
|
||||
me->GetMap()->DoForAllPlayers([&](Player* p)
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
DoCastSelf(SPELL_MARK_OF_FROST_AURA);
|
||||
Talk(SAY_AGGRO);
|
||||
|
||||
_scheduler
|
||||
scheduler
|
||||
.Schedule(7s, [this](TaskContext context)
|
||||
{
|
||||
DoCastVictim(SPELL_CLEAVE);
|
||||
@@ -149,14 +149,11 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
_scheduler.Update(diff, [this]
|
||||
{
|
||||
DoMeleeAttackIfReady();
|
||||
});
|
||||
scheduler.Update(diff, [this]
|
||||
{
|
||||
DoMeleeAttackIfReady();
|
||||
});
|
||||
}
|
||||
|
||||
protected:
|
||||
TaskScheduler _scheduler;
|
||||
};
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/) override
|
||||
|
||||
Reference in New Issue
Block a user