mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Eye of Eternity: Fixed The Focusing Iris not respawning on wipe
Closes #22948
(cherry picked from commit f57b1e27d0)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user