From 1591e56b19a5962de6548b66db2e89b66c5e1ebb Mon Sep 17 00:00:00 2001 From: XandrNiko Date: Sun, 5 Nov 2023 02:25:02 +0300 Subject: [PATCH] ZG: Fix door to boss arlokk Closes https://github.com/cmangos/mangos-tbc/pull/637 --- .../scripts/eastern_kingdoms/zulgurub/zulgurub.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/zulgurub/zulgurub.cpp b/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/zulgurub/zulgurub.cpp index 565bc83df1..0fd3ff10b5 100644 --- a/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/zulgurub/zulgurub.cpp +++ b/src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/zulgurub/zulgurub.cpp @@ -117,10 +117,11 @@ void instance_zulgurub::SetData(uint32 type, uint32 data) break; case TYPE_ARLOKK: m_auiEncounter[type] = data; - if (data == IN_PROGRESS) - DoUseDoorOrButton(GO_FORCEFIELD); - else if (GameObject* pForcefield = GetSingleGameObjectFromStorage(GO_FORCEFIELD)) - pForcefield->ResetDoorOrButton(); + if (data == DONE || data == FAIL) + DoUseOpenableObject(GO_FORCEFIELD, true); + else if (data == IN_PROGRESS) + DoUseOpenableObject(GO_FORCEFIELD, false); + if (data == DONE) RemoveHakkarPowerStack(); if (data == FAIL)