public override WrappedCard ViewAs(Room room, List <WrappedCard> cards, Player player) { if (cards.Count == 0 || cards.Count > max_num) { return(null); } card.ClearSubCards(); card.AddSubCards(cards); return(card); }
public override WrappedCard ViewAs(Room room, List <WrappedCard> cards, Player player) { if ((!Optional && cards.Count > 0) || cards.Count + Reserved.Count >= MinNum) { card.ClearSubCards(); card.AddSubCards(cards); card.AddSubCards(Reserved); return(card); } else { return(null); } }
public override WrappedCard ViewAs(Room room, List <WrappedCard> cards, Player player) { if (cards.Count == 0) { return(null); } if (cards.Count >= minnum) { card.ClearSubCards(); card.AddSubCards(cards); return(card); } else { return(null); } }