using DominionBase.Enums; using System.Diagnostics.Contracts; using System.Linq; namespace DominionBase.Cards.Menagerie { public class WayOfTheCamel : Way { public WayOfTheCamel() : base(Source.Menagerie, Traits.Component | Traits.Exiler | Traits.Terminal) { } public override void FollowAlternateInstructions(IPlayer player, Card playedCard) { Contract.Requires(player != null, "player cannot be null"); base.FollowAlternateInstructions(player, playedCard); if (player._Game.Table.Gold.Count > 0) { var toExile = player._Game.Table.Gold.Take(); player.AddCardInto(TypeClass.Exile, toExile); toExile.ReceivedBy(player); player._Game.SendMessage(player, this, "Exile", toExile); } } } }