Example #1
0
    public IEnumerator Mulligan(Player p, int cards)
    {
        selecting_card = true;

        p.deck.Shuffle();

        yield return(card_selector.StartMultiCardSelection(p.deck.TopCards(cards).ToArray()));

        foreach (Card c in card_selector.GetCardsSelected())
        {
            p.deck.MoveCardToBottom(c);
        }

        DrawCard(p, cards);

        p.deck.Shuffle();

        selecting_card = false;
    }