Commit afd6951c authored by mercury233's avatar mercury233

distinct CheckSelectCount

parent b1a8a6bf
......@@ -424,7 +424,7 @@ namespace WindBot.Game.AI
/// </summary>
public IList<ClientCard> CheckSelectCount(IList<ClientCard> _selected, IList<ClientCard> cards, int min, int max)
{
var selected = _selected.ToList();
var selected = _selected.Distinct().ToList();
if (selected.Count < min)
{
foreach (ClientCard card in cards)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment