Update logic for which allied society quests can be accepted

This commit is contained in:
Liza 2025-01-04 16:48:13 +01:00
parent 25130dcb7c
commit 459b832ef2
Signed by: liza
GPG Key ID: 2C41B84815CF6445

View File

@ -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
{