aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-04-10 17:08:25 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-01 13:28:41 +0100
commit2f17038373d8805481f474483a80ce76e6eb75e9 (patch)
tree7ce5c82b3d24ff8ccf28d8f48501e59dbee85c50
parentba69c91f4bfec9999d151ef42f0b522924496264 (diff)
Scripts/Eye of Eternity: Fixed The Focusing Iris not respawning on wipe
Closes #22948 (cherry picked from commit f57b1e27d062286553b8dd3199ce118eb99ac270)
-rw-r--r--src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
index 7326268a07b..c7933fc602c 100644
--- a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
+++ b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
@@ -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);