Exemplo n.º 1
0
 void IActionCard.Play(Dominion.Engine.Game game, Player player, Turn turn, object sidedata)
 {
     IEnumerable<ICard> cards = (IEnumerable<ICard>)sidedata;
     int count = 0;
     foreach (ICard card in cards)
     {
         if (Object.ReferenceEquals(card, this))
             throw new Exception("Attempted to discard the Cellar card that was being played");
         player.DiscardFromHand(card);
         ++count;
     }
     player.Draw(count);
 }
Exemplo n.º 2
0
 void IActionCard.Play(Dominion.Engine.Game game, Player player, Turn turn, object sidedata)
 {
     player.Draw(3);
 }