Пример #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();