Scripts/Shadowfang Keep: Check boss state and door state before opening Arugal door (#30891)

This commit is contained in:
CraftedRO
2025-04-28 19:41:24 +03:00
committed by GitHub
parent a1814cf13d
commit e5b8798a4b
2 changed files with 9 additions and 1 deletions

View File

@@ -174,7 +174,11 @@ public:
break;
case TYPE_NANDOS:
if (data == DONE)
DoUseDoorOrButton(DoorArugalGUID);
{
if (GameObject* go = instance->GetGameObject(DoorArugalGUID))
if (go->GetGoState() == GO_STATE_READY)
DoUseDoorOrButton(DoorArugalGUID);
}
m_auiEncounter[3] = data;
break;
case DATA_SPAWN_VALENTINE_ADDS: