mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user