protected override void ApplyEffectsCore(AttackState state, TagCollection target)
 {
     foreach (var tag in state.GetTags(TagScope))
     {
         if (MatchKindUtility.IsMatch(tag.Key, TagKey, TagKeyMatchKind, false))
         {
             var newTag = tag.CloneWithKey(NewTagKey);
             target.AddTag(newTag, ConflictResolution);
         }
     }
 }
Esempio n. 2
0
 public override bool IsTrue(AttackState state)
 {
     return(state.GetTags(MatchScopes)
            .Where(x => MatchKindUtility.IsMatch(x.Key, MatchKey, KeyMatchKind, false))
            .Any(IsTagValueMatch));
 }