refactor(Scripts/World): Clean up script files (#17728)

* refactor(Scripts/World): Clean up script files

* Update boss_azuregos.cpp
This commit is contained in:
Andrew
2023-11-16 14:00:42 -03:00
committed by GitHub
parent 0d8b1d4942
commit a5b5278929
4 changed files with 19 additions and 25 deletions

View File

@@ -193,9 +193,9 @@ public:
void ScheduleEvents()
{
_scheduler.CancelAll();
scheduler.CancelAll();
_scheduler.Schedule(1s, [this](TaskContext context)
scheduler.Schedule(1s, [this](TaskContext context)
{
// Chase target, but don't attack - otherwise just roam around
if (Unit* chaseTarget = GetRandomUnitFromDragonThreatList())
@@ -251,13 +251,12 @@ public:
if (!UpdateVictim())
return;
_scheduler.Update(diff);
scheduler.Update(diff);
}
private:
ObjectGuid _targetGUID;
ObjectGuid _dragonGUID;
TaskScheduler _scheduler;
};
CreatureAI* GetAI(Creature* creature) const override