fix(Scripts/ZulGurub): Prevent Arlokk from being summoned twice (#10932)

This commit is contained in:
Skjalf
2022-03-14 19:03:18 -03:00
committed by GitHub
parent dccc2909cd
commit 33635cbb3c

View File

@@ -426,7 +426,7 @@ public:
bool OnGossipHello(Player* /*player*/, GameObject* go) override
{
if (go->GetInstanceScript())
if (go->GetInstanceScript() && !go->FindNearestCreature(NPC_ARLOKK, 25.0f))
{
go->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
go->SendCustomAnim(0);