fix(Scripts/ZulGurub): Prevent Arlokk from being summoned twice (#10932)
This commit is contained in:
@@ -426,7 +426,7 @@ public:
|
|||||||
|
|
||||||
bool OnGossipHello(Player* /*player*/, GameObject* go) override
|
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->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
|
||||||
go->SendCustomAnim(0);
|
go->SendCustomAnim(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user