Exclude custom delivery quests from priority window (as they can't be started this way)

This commit is contained in:
Liza 2024-09-11 21:10:48 +02:00
parent f2591790f7
commit 3c219ae7d0
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -80,6 +80,7 @@ internal sealed class PriorityWindow : LWindow
if (!string.IsNullOrEmpty(_searchString))
{
foundQuests = _questRegistry.AllQuests
.Where(x => x.Id is not SatisfactionSupplyNpcId)
.Where(x => x.Info.Name.Contains(_searchString, StringComparison.CurrentCultureIgnoreCase))
.Where(x => !_questFunctions.IsQuestUnobtainable(x.Id));
}