Build Fix

This commit is contained in:
Aokromes
2017-12-27 14:07:18 +01:00
parent b9fb7e8981
commit 38aacc8967

View File

@@ -72,9 +72,9 @@ class instance_lost_city_of_the_tolvir : public InstanceMapScript
Initialize();
}
void Initialize()
void Initialize() override
{
_heroicAughSpawned = false;
heroicAughSpawned = false;
}
void OnCreatureCreate(Creature* creature) override
@@ -95,14 +95,14 @@ class instance_lost_city_of_the_tolvir : public InstanceMapScript
case DATA_LOCKMAW:
if (!instance->IsHeroic() && state == DONE)
SetBossState(DATA_LOCKMAW_AND_AUGH, DONE);
else if (instance->IsHeroic() && state == DONE && !_heroicAughSpawned)
_events.ScheduleEvent(EVENT_SPAWN_AUGH, Seconds(4));
else if (instance->IsHeroic() && state == DONE && !heroicAughSpawned)
events.ScheduleEvent(EVENT_SPAWN_AUGH, Seconds(4));
break;
case DATA_AUGH: // Since Augh is summoned, we need to handle his respawn here
if (state == DONE)
SetBossState(DATA_LOCKMAW_AND_AUGH, DONE);
else if (state == FAIL)
_events.ScheduleEvent(EVENT_SPAWN_AUGH, Seconds(30));
events.ScheduleEvent(EVENT_SPAWN_AUGH, Seconds(30));
break;
case DATA_GENERAL_HUSAM:
case DATA_LOCKMAW_AND_AUGH:
@@ -175,20 +175,20 @@ class instance_lost_city_of_the_tolvir : public InstanceMapScript
void Update(uint32 diff) override
{
_events.Update(diff);
events.Update(diff);
while (uint32 eventId = _events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch (eventId)
{
case EVENT_SPAWN_AUGH:
if (!_heroicAughSpawned)
if (!heroicAughSpawned)
{
if (Creature* augh = instance->SummonCreature(BOSS_AUGH, AughSpawnPos))
augh->AI()->DoAction(ACTION_AUGH_INTRO);
_heroicAughSpawned = true;
heroicAughSpawned = true;
}
else if (_heroicAughSpawned)
else if (heroicAughSpawned)
if (Creature* augh = instance->SummonCreature(BOSS_AUGH, AughHomePos))
augh->AI()->DoAction(ACTION_AUGH_ATTACKABLE);
break;