private void AddSpiderToTheStagingArea(IGame game, IEffectHandle handle, IEnemyCard spider) { if (game.StagingArea.EncounterDeck.Cards.Any(x => x.Id == spider.Id)) { game.StagingArea.EncounterDeck.RemoveFromDeck(spider); game.StagingArea.AddToStagingArea(spider); handle.Resolve(string.Format("'{0}' added to the staging area from the encounter deck", spider.Title)); return; } else if (game.StagingArea.EncounterDeck.DiscardPile.Any(x => x.Id == spider.Id)) { game.StagingArea.EncounterDeck.RemoveFromDiscardPile(new List<IEncounterCard> { spider }); game.StagingArea.AddToStagingArea(spider); handle.Resolve(string.Format("'{0}' added to the staging area from the encounter discard pile", spider.Title)); } handle.Cancel(string.Format("'{0}' was not added to the staging area because it could not be located", spider.Title)); }
private void AddSpiderToTheStagingArea(IGame game, IEffectHandle handle, IEnemyCard spider) { if (game.StagingArea.EncounterDeck.Cards.Any(x => x.Id == spider.Id)) { game.StagingArea.EncounterDeck.RemoveFromDeck(spider); game.StagingArea.AddToStagingArea(spider); handle.Resolve(string.Format("'{0}' added to the staging area from the encounter deck", spider.Title)); return; } else if (game.StagingArea.EncounterDeck.DiscardPile.Any(x => x.Id == spider.Id)) { game.StagingArea.EncounterDeck.RemoveFromDiscardPile(new List <IEncounterCard> { spider }); game.StagingArea.AddToStagingArea(spider); handle.Resolve(string.Format("'{0}' added to the staging area from the encounter discard pile", spider.Title)); } handle.Cancel(string.Format("'{0}' was not added to the staging area because it could not be located", spider.Title)); }
public EnemyInPlay(IGame game, IEnemyCard card) : base(game, card) { }
private string GetSpiderDescription(IGame game, IEnemyCard spider) { return((game.StagingArea.EncounterDeck.DiscardPile.Any(x => x.Id == spider.Id)) ? string.Format("{0} (Discard Pile", spider.Title) : string.Format("{0} (Encounter Deck", spider.Title)); }
private string GetSpiderDescription(IGame game, IEnemyCard spider) { return (game.StagingArea.EncounterDeck.DiscardPile.Any(x => x.Id == spider.Id)) ? string.Format("{0} (Discard Pile", spider.Title) : string.Format("{0} (Encounter Deck", spider.Title); }