using DominionBase.Enums; using System.Diagnostics.Contracts; namespace DominionBase.Cards.Nocturne { public abstract class Doom : Card { internal Doom(Categories category, Location location, Traits traits = Traits.None, CardBack cardBack = CardBack.Standard, Edition edition = Edition.All) : base(category | Categories.Doom, Source.Nocturne, location, traits, cardBack, edition) { } public override void SetupSupply(IGame game, ISupply supply) { Contract.Requires(game != null, "game cannot be null"); base.SetupSupply(game, supply); if (!game.Table.SpecialPiles.ContainsKey(TypeClass.Hexes)) { var hexSupply = new Hexes(game); hexSupply.FullSetup(); game.Table.SpecialPiles.Add(TypeClass.Hexes, hexSupply); } } } }