コード例 #1
0
 public bool AllowsBuff(BuffBuilderWithKeywords buff) =>
 buff.Keywords.ContainsAll(_restrictedToKeywords) && !_excludedKeywords.ContainsAny(buff.Keywords);
コード例 #2
0
 public bool AllowsBuff(BuffBuilderWithKeywords buff) =>
 _restrictedToKeywords.Intersect(buff.Keywords).Count() == _restrictedToKeywords.Count &&
 _excludedKeywords.Intersect(buff.Keywords).IsEmpty();