Skip to content

Commit

Permalink
Magtheridon: Fix door to boss magtheridon
Browse files Browse the repository at this point in the history
Closes #638
  • Loading branch information
XandrKhv authored and killerwife committed Dec 28, 2023
1 parent 637955c commit 0f628c0
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ void instance_magtheridons_lair::SetData(uint32 uiType, uint32 uiData)
m_uiCageBreakTimer = 0;
m_uiCageBreakStage = 0;

// no break;
[[fallthrough]];
case DONE:
// Reset door on Fail or Done
if (GameObject* pDoor = GetSingleGameObjectFromStorage(GO_DOODAD_HF_MAG_DOOR01))
pDoor->ResetDoorOrButton();
DoUseOpenableObject(GO_DOODAD_HF_MAG_DOOR01, true);

SetData(TYPE_CHANNELER_EVENT, DONE);
break;
Expand Down Expand Up @@ -164,8 +163,7 @@ void instance_magtheridons_lair::SetData(uint32 uiType, uint32 uiData)
m_uiCageBreakStage = 0;

// Reset door on Fail
if (GameObject* pDoor = GetSingleGameObjectFromStorage(GO_DOODAD_HF_MAG_DOOR01))
pDoor->ResetDoorOrButton();
DoUseOpenableObject(GO_DOODAD_HF_MAG_DOOR01, true);

// Reset Magtheridon
if (Creature* pMagtheridon = GetSingleCreatureFromStorage(NPC_MAGTHERIDON))
Expand All @@ -187,7 +185,7 @@ void instance_magtheridons_lair::SetData(uint32 uiType, uint32 uiData)
}

// combat door
DoUseDoorOrButton(GO_DOODAD_HF_MAG_DOOR01);
DoUseOpenableObject(GO_DOODAD_HF_MAG_DOOR01, false);
}
m_auiEncounter[uiType] = uiData;
break;
Expand Down

0 comments on commit 0f628c0

Please sign in to comment.