mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Scripts/ZulAman): Fix Hexlord gate not opening after crashes (#21133)
This commit is contained in:
@@ -149,10 +149,10 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go) override
|
||||
{
|
||||
if (go->GetEntry() == GO_GATE_HEXLORD)
|
||||
CheckInstanceStatus();
|
||||
|
||||
InstanceScript::OnGameObjectCreate(go);
|
||||
|
||||
if (go->GetEntry() == GO_GATE_HEXLORD)
|
||||
CheckInstanceStatus(go);
|
||||
}
|
||||
|
||||
void SummonHostage(uint8 num)
|
||||
@@ -189,10 +189,10 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void CheckInstanceStatus()
|
||||
void CheckInstanceStatus(GameObject* gate = nullptr)
|
||||
{
|
||||
if (AllBossesDone({ DATA_NALORAKK, DATA_AKILZON, DATA_JANALAI, DATA_HALAZZI }))
|
||||
HandleGameObject(ObjectGuid::Empty, true, GetGameObject(DATA_HEXLORD_GATE));
|
||||
HandleGameObject(ObjectGuid::Empty, true, gate ? gate : GetGameObject(DATA_HEXLORD_GATE));
|
||||
}
|
||||
|
||||
void SetData(uint32 type, uint32 data) override
|
||||
|
||||
Reference in New Issue
Block a user