public override void Validate(IGame game, IEffectHandle handle) { var firstPlayer = game.Players.Where(x => x.IsFirstPlayer).FirstOrDefault(); if (firstPlayer == null) { handle.Reject(); return; } if (firstPlayer.Hand.Cards.Count() < 2) { handle.Reject(); return; } var random1 = firstPlayer.Hand.GetRandomCard(); var random2 = firstPlayer.Hand.GetRandomCard(); firstPlayer.DiscardFromHand(new List <IPlayerCard> { random1, random2 }); handle.Accept(); }
public override void Validate(IGame game, IEffectHandle handle) { if (game.StagingArea.EncounterDeck.Size == 0) { handle.Reject(); return; } game.StagingArea.RevealEncounterCard(); handle.Accept(); }
public override void Validate(IGame game, IEffectHandle handle) { if (game.StagingArea.EncounterDeck.Size == 0) { handle.Reject(); return; } game.StagingArea.RevealEncounterCard(); handle.Accept(); }
public override void Validate(IGame game, IEffectHandle handle) { var firstPlayer = game.Players.Where(x => x.IsFirstPlayer).FirstOrDefault(); if (firstPlayer == null) { handle.Reject(); return; } if (firstPlayer.Hand.Cards.Count() < 2) { handle.Reject(); return; } var random1 = firstPlayer.Hand.GetRandomCard(); var random2 = firstPlayer.Hand.GetRandomCard(); firstPlayer.DiscardFromHand(new List<IPlayerCard> { random1, random2 }); handle.Accept(); }