Skip to content

Commit

Permalink
Scripts/Eye of Eternity: Fixed The Focusing Iris not respawning on wipe
Browse files Browse the repository at this point in the history
Closes #22948
  • Loading branch information
Shauren committed Apr 10, 2020
1 parent 18b3673 commit f57b1e2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -342,7 +342,7 @@ class boss_malygos : public CreatureScript
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;
}
Expand Down Expand Up @@ -385,6 +385,7 @@ class boss_malygos : public CreatureScript
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
Expand Down Expand Up @@ -581,7 +582,6 @@ class boss_malygos : public CreatureScript
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);

Expand Down

0 comments on commit f57b1e2

Please sign in to comment.