using System.Collections.Generic; using Wizard.Battle; public class SkillIsOwnerFilter : ISkillCardFilter { private bool _isOwner; public SkillIsOwnerFilter(bool flag) { _isOwner = flag; } public IEnumerable Filtering(IEnumerable cards, SkillOptionValue option) { List list = new List(); // IsAdminWatch is const-false in headless (Phase 4) — the guard collapses to // `card.IsPlayer == _isOwner`. Preserved the local for readability. bool isAdminWatch = false; foreach (IReadOnlyBattleCardInfo card in cards) { if (card.IsPlayer == _isOwner || isAdminWatch) { list.Add(card); } } return list; } }