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();