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:
@@ -7771,6 +7771,8 @@ namespace Game
|
|||||||
Log.outError(LogFilter.Sql, $"Quest {qinfo.Id} has PrevQuestId {prevQuestId}, but no such quest");
|
Log.outError(LogFilter.Sql, $"Quest {qinfo.Id} has PrevQuestId {prevQuestId}, but no such quest");
|
||||||
else if (prevQuestItr.BreadcrumbForQuestId != 0)
|
else if (prevQuestItr.BreadcrumbForQuestId != 0)
|
||||||
Log.outError(LogFilter.Sql, $"Quest {qinfo.Id} should not be unlocked by breadcrumb quest {prevQuestId}");
|
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)
|
if (qinfo.NextQuestId != 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user