using System.Collections.Generic; using System.Linq; using Wizard.Battle; public class SkillParameterSelectDamageCount : ISkillParameterSelectFilter { private readonly string _option = string.Empty; public SkillParameterSelectDamageCount(string option) { _option = option; } public IEnumerable Filtering(IEnumerable cardInfos, SkillConditionCheckerOption checkerOption) { return cardInfos.Select((IReadOnlyBattleCardInfo c) => c.DamagedCounter.GetDamageCount(_option == SkillFilterCreator.ContentKeyword.self.ToStringCustom())); } }