Scripts/Eye of Eternity: Fixed The Focusing Iris not respawning on wipe

Closes #22948

(cherry picked from commit f57b1e27d0)
This commit is contained in:
Shauren
2020-04-10 17:08:25 +02:00
parent ba69c91f4b
commit 2f17038373

View File

@@ -340,7 +340,7 @@ public:
boss_malygosAI(Creature* creature) : BossAI(creature, DATA_MALYGOS_EVENT)
{
Initialize();
_despawned = false; // We determine if Malygos will be realocated to spawning position on reset triggered by boss despawn on evade
_despawned = instance->GetBossState(DATA_MALYGOS_EVENT) == FAIL;
_flySpeed = me->GetSpeed(MOVE_FLIGHT); // Get initial fly speed, otherwise on each wipe fly speed would add up if we get it
_phase = PHASE_NOT_STARTED;
}
@@ -383,6 +383,7 @@ public:
SetPhase(PHASE_NOT_STARTED, true);
me->SetReactState(REACT_PASSIVE);
instance->DoStopCriteriaTimer(CriteriaStartEvent::SendEvent, ACHIEV_TIMED_START_EVENT);
instance->SetBossState(DATA_MALYGOS_EVENT, NOT_STARTED);
}
uint32 GetData(uint32 data) const override
@@ -579,7 +580,6 @@ public:
void EnterEvadeMode(EvadeReason /*why*/) override
{
instance->SetBossState(DATA_MALYGOS_EVENT, FAIL);
instance->SetBossState(DATA_MALYGOS_EVENT, NOT_STARTED);
me->GetMap()->SetZoneOverrideLight(AREA_EYE_OF_ETERNITY, LIGHT_DEFAULT, 0, 1*IN_MILLISECONDS);