Esempio n. 1
0
        public void PlayCard(int index)
        {
            foreach (var Card in this.cardsInHand)
            {
                Card.PrintStats();
            }
            Card card = this.cardsInHand[index];

            if (card.manaCost <= this.currentMana)
            {
                if (card is MonsterCard)
                {
                    this.cardsOnField.Add((MonsterCard)card);
                    Console.WriteLine("Played Card: " + card.name);
                }
                card.Action();
                this.cardsInHand.Remove(card);
            }
            else
            {
                Console.WriteLine("Not enough mana!");
            }
        }