From 5f35c7339291ec4ea00e1157f02e2ab29c2bfb2e Mon Sep 17 00:00:00 2001 From: Ovalord <1Don7H4v3@m41L.com> Date: Mon, 8 Jan 2018 01:05:16 +0100 Subject: [PATCH] Scripts/SFK: fixed endless repeating Godfrey Intro --- .../ShadowfangKeep/instance_shadowfang_keep.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp index 263c87f0d59..f089074f45e 100644 --- a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp +++ b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp @@ -332,6 +332,8 @@ public: { case DATA_TEAM_IN_INSTANCE: return _teamInInstance; + case DATA_GODFREY_INTRO: + return _arugalDoorState; default: break; } @@ -407,8 +409,9 @@ public: } } } - if (GameObject* door = GetGameObject(DATA_ARUGAL_DOOR)) - door->SetGoState(data == DONE ? GO_STATE_ACTIVE : GO_STATE_READY); + if (data == DONE) + if (GameObject* door = GetGameObject(DATA_ARUGAL_DOOR)) + InstanceScript::OnGameObjectCreate(door); SaveToDB(); break; default: