Ejemplo n.º 1
0
        public void TradeTwoForOne(int player, int cardIndex, int target)
        {
            PlayerController pc       = playerControllers[player];
            PlayerController targetPc = playerControllers[target];
            Card             c        = pc.UnequipHandCard(cardIndex);

            for (int i = 0; i < 2 && targetPc.Hand.Count > 0; i++)
            {
                Card targetCard = targetPc.GetCardFromHand();
                pc.AddCard(targetCard);
            }
            targetPc.AddCard(c);
        }