mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user