fix(Script/ICC): Make Plagueworks Release Valves noninteractable afte… (#19133)

fix(Script/ICC): Make Plagueworks Release Valves noninteractable after use

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/19072
This commit is contained in:
Kitzunu
2024-06-24 10:12:02 +02:00
committed by GitHub
parent c87ed38011
commit 240314efb5

View File

@@ -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)
{