From 459b832ef2ce21b615ab368a8366f34adae43b5e Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sat, 4 Jan 2025 16:48:13 +0100 Subject: [PATCH] Update logic for which allied society quests can be accepted --- Questionable/Functions/QuestFunctions.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Questionable/Functions/QuestFunctions.cs b/Questionable/Functions/QuestFunctions.cs index 2078ca9e..f0e6d159 100644 --- a/Questionable/Functions/QuestFunctions.cs +++ b/Questionable/Functions/QuestFunctions.cs @@ -450,14 +450,19 @@ internal sealed unsafe class QuestFunctions if (IsQuestAccepted(questId)) return false; - if (quest.Info.AlliedSociety != EAlliedSociety.None) + if (questId is QuestId qId && IsDailyAlliedSocietyQuest(qId)) { if (QuestManager.Instance()->IsDailyQuestCompleted(questId.Value)) return false; - } - if (IsQuestComplete(questId)) - return false; + if (!IsDailyAlliedSocietyQuestAndAvailableToday(qId)) + return false; + } + else + { + if (IsQuestComplete(questId)) + return false; + } } else {