Exemplo n.º 1
0
 /// <summary>
 /// Determines if Dracula is playing Relentless Minion
 /// </summary>
 /// <param name="game">The GameState</param>
 /// <param name="huntersInvolved">The List of Hunters involved in the Encounter</param>
 /// <param name="opponent">The Opponent type</param>
 /// <param name="logic">The artificial intelligence component</param>
 /// <returns>True if Dracula successfully plays Relentless Minion</returns>
 private static bool DraculaIsPlayingRelentlessMinion(GameState game, List<Hunter> huntersInvolved,
     Opponent opponent, DecisionMaker logic)
 {
     if (logic.ChooseToPlayRelentlessMinion(game, huntersInvolved, opponent))
     {
         Console.WriteLine("Dracula is playing Relentless Minion");
         game.Dracula.DiscardEvent(Event.RelentlessMinion, game.EventDiscard);
         if (
             HunterPlayingGoodLuckToCancelDraculaEvent(game, Event.RelentlessMinion, Event.RelentlessMinion,
                 logic) > 0)
         {
             Console.WriteLine("Relentless Minion cancelled");
             return false;
         }
         return true;
     }
     return false;
 }