/// <summary> /// Determines if Dracula is playing Trap against a Hunter at the start of a combat /// </summary> /// <param name="game">The GameState</param> /// <param name="huntersInvolved">The list of Hunters involved in the combat</param> /// <param name="opponent">The Opponent</param> /// <param name="logic">The artificial intelligence component</param> /// <returns>True if Dracula successfully plays Trap</returns> private static bool DraculaIsPlayingTrap(GameState game, List<HunterPlayer> huntersInvolved, Opponent opponent, DecisionMaker logic) { if (logic.ChooseToPlayTrap(game, huntersInvolved, opponent)) { Console.WriteLine("Dracula is playing Trap"); game.Dracula.DiscardEvent(Event.Trap, game.EventDiscard); if (HunterPlayingGoodLuckToCancelDraculaEvent(game, Event.Trap, Event.Trap, logic) > 0) { Console.WriteLine("Trap cancelled"); return false; } return true; } return false; }