private bool IsAffectedCardInPlay() { bool identiferInPlay = base.FindCardsWhere(c => c.IsInPlayAndHasGameText && AffectedIdentifiers.Contains(c.Identifier)).Any(); return(FlipIdentiferInPlayCondition ? !identiferInPlay : identiferInPlay); }
protected Card GetAffectedCardInPlay() { IEnumerable <Card> cardsInPlay = base.FindCardsWhere(c => (FlipIdentiferInPlayCondition ? !c.IsInPlayAndHasGameText : c.IsInPlayAndHasGameText) && AffectedIdentifiers.Contains(c.Identifier)); return(cardsInPlay.FirstOrDefault()); }