From 240314efb544521d50040538a03acdc6f0f69f35 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:12:02 +0200 Subject: [PATCH] =?UTF-8?q?fix(Script/ICC):=20Make=20Plagueworks=20Release?= =?UTF-8?q?=20Valves=20noninteractable=20afte=E2=80=A6=20(#19133)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Script/ICC): Make Plagueworks Release Valves noninteractable after use * closes https://github.com/azerothcore/azerothcore-wotlk/issues/19072 --- .../Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp b/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp index 427b6987d..165fde334 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp @@ -1877,6 +1877,9 @@ public: case EVENT_FESTERGUT_VALVE_USED: if (!(PutricideEventProgress & PUTRICIDE_EVENT_FLAG_FESTERGUT_VALVE)) { + if (GameObject* goGas = instance->GetGameObject(GasReleaseValveGUID)) + goGas->SetGameObjectFlag(GO_FLAG_INTERACT_COND | GO_FLAG_NOT_SELECTABLE); + PutricideEventProgress |= PUTRICIDE_EVENT_FLAG_FESTERGUT_VALVE; if (PutricideEventProgress & PUTRICIDE_EVENT_FLAG_ROTFACE_VALVE) { @@ -1894,6 +1897,9 @@ public: case EVENT_ROTFACE_VALVE_USED: if (!(PutricideEventProgress & PUTRICIDE_EVENT_FLAG_ROTFACE_VALVE)) { + if (GameObject* goOoze = instance->GetGameObject(OozeReleaseValveGUID)) + goOoze->SetGameObjectFlag(GO_FLAG_INTERACT_COND | GO_FLAG_NOT_SELECTABLE); + PutricideEventProgress |= PUTRICIDE_EVENT_FLAG_ROTFACE_VALVE; if (PutricideEventProgress & PUTRICIDE_EVENT_FLAG_FESTERGUT_VALVE) {