Allow weekly delivery turn-in while in duty queue

This commit is contained in:
Liza 2024-08-25 16:01:02 +02:00
parent d310c9ff1b
commit ca4bc07eeb
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -431,7 +431,8 @@ internal sealed unsafe class GameFunctions
if (!AgentSatisfactionSupply.Instance()->IsAgentActive())
return false;
var flags = _condition.AsReadOnlySet();
var flags = _condition.AsReadOnlySet().ToHashSet();
flags.Remove(ConditionFlag.InDutyQueue); // irrelevant
return flags.Count == 2 &&
flags.Contains(ConditionFlag.NormalConditions) &&
flags.Contains(ConditionFlag.OccupiedInQuestEvent);