From 39dd7d9dde02f76b9bfa74ac98f4cad0de330a79 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 29 May 2022 20:53:07 -0400 Subject: [PATCH] Core/Quests: check PreviousQuestID values as well when trying to make quest groups available to players Port From (https://github.com/TrinityCore/TrinityCore/commit/a5889ba3eb7bb47abbabc5def5dd8815780ad3e2) --- Source/Game/Globals/ObjectManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Game/Globals/ObjectManager.cs b/Source/Game/Globals/ObjectManager.cs index 3ca6d6215..1285081f1 100644 --- a/Source/Game/Globals/ObjectManager.cs +++ b/Source/Game/Globals/ObjectManager.cs @@ -7771,6 +7771,8 @@ namespace Game Log.outError(LogFilter.Sql, $"Quest {qinfo.Id} has PrevQuestId {prevQuestId}, but no such quest"); else if (prevQuestItr.BreadcrumbForQuestId != 0) Log.outError(LogFilter.Sql, $"Quest {qinfo.Id} should not be unlocked by breadcrumb quest {prevQuestId}"); + else if (qinfo.PrevQuestId > 0) + qinfo.DependentPreviousQuests.Add(prevQuestId); } if (qinfo.NextQuestId != 0)