From 41ab3679b73cf9d290414ecb947e424df9e8bd18 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Sat, 23 May 2015 18:10:11 -0400 Subject: [PATCH] allow in faction agenda --- src/NetrunnerChallenge/Controllers/HomeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetrunnerChallenge/Controllers/HomeController.cs b/src/NetrunnerChallenge/Controllers/HomeController.cs index 633ff18..5368352 100644 --- a/src/NetrunnerChallenge/Controllers/HomeController.cs +++ b/src/NetrunnerChallenge/Controllers/HomeController.cs @@ -88,7 +88,7 @@ namespace NetrunnerChallenge.Controllers Cards = new List() }; var cards = new NetrunnerApi().GetCards() - .Where(a => string.Equals(a.Side, factionMatch.Side, StringComparison.CurrentCultureIgnoreCase) && a.Agendapoints == null && !string.IsNullOrWhiteSpace(a.Imagesrc)) + .Where(a => string.Equals(a.Side, factionMatch.Side, StringComparison.CurrentCultureIgnoreCase) && (a.Agendapoints == null || string.Equals(a.Faction, factionMatch.FactionName, StringComparison.InvariantCultureIgnoreCase) ) && !string.IsNullOrWhiteSpace(a.Imagesrc) && !string.Equals(a.Type, "Identity", StringComparison.CurrentCultureIgnoreCase)) .ToList(); var length = cards.Count - 1; var randgen = new Random();