fix(DB/Script): Violet Hold Door not opening (#13958)

This commit is contained in:
Pedro Antonio
2023-01-28 11:04:07 +01:00
committed by GitHub
parent 9ce8b8cf29
commit ede34b714b
2 changed files with 6 additions and 16 deletions

View File

@@ -1173,21 +1173,6 @@ public:
}
};
class go_violet_hold_gate_lever : public GameObjectScript
{
public:
go_violet_hold_gate_lever() : GameObjectScript("go_violet_hold_gate_lever") { }
bool OnGossipHello(Player* player, GameObject* go) override
{
if (GameObject* gate = go->GetMap()->GetGameObject(ObjectGuid::Create<HighGuid::GameObject>(193019, 61606)))
if (gate->getLootState() == GO_READY)
gate->UseDoorOrButton(0, false, player);
return false;
}
};
void AddSC_violet_hold()
{
new go_vh_activation_crystal();
@@ -1205,5 +1190,4 @@ void AddSC_violet_hold()
new npc_azure_stalker();
new spell_destroy_door_seal();
new go_violet_hold_gate_lever();
}