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)
This commit is contained in:
hondacrx
2022-05-29 20:53:07 -04:00
parent f0fa9fe7d8
commit 39dd7d9dde
+2
View File
@@ -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)