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); }
void IActionCard.Play(Dominion.Engine.Game game, Player player, Turn turn, object sidedata) { player.Draw(3); }