mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +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:
@@ -50,7 +50,7 @@ public:
|
||||
void Reset() override
|
||||
{
|
||||
_inEnrage = false;
|
||||
_scheduler.CancelAll();
|
||||
scheduler.CancelAll();
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim) override
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
_scheduler.Schedule(1ms, [this](TaskContext context)
|
||||
scheduler.Schedule(1ms, [this](TaskContext context)
|
||||
{
|
||||
if (!HealthAbovePct(20))
|
||||
{
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
_scheduler.Update(diff);
|
||||
scheduler.Update(diff);
|
||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||
return;
|
||||
|
||||
@@ -137,7 +137,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
TaskScheduler _scheduler;
|
||||
bool _inEnrage;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user