From f57b1e27d062286553b8dd3199ce118eb99ac270 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 10 Apr 2020 17:08:25 +0200 Subject: Scripts/Eye of Eternity: Fixed The Focusing Iris not respawning on wipe Closes #22948 --- src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp index a30fd10916d..d0ccc5f482f 100644 --- a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp +++ b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp @@ -342,7 +342,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; } @@ -385,6 +385,7 @@ public: SetPhase(PHASE_NOT_STARTED, true); me->SetReactState(REACT_PASSIVE); instance->DoStopTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT); + instance->SetBossState(DATA_MALYGOS_EVENT, NOT_STARTED); } uint32 GetData(uint32 data) const override @@ -581,7 +582,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); -- cgit v1.2.3