Dominion.PlayerState.RequestPlayerDiscardDownToCountInHand C# (CSharp) Method

RequestPlayerDiscardDownToCountInHand() private method

private RequestPlayerDiscardDownToCountInHand ( GameState gameState, int count ) : void
gameState GameState
count int
return void
        internal void RequestPlayerDiscardDownToCountInHand(GameState gameState, int count)
        {
            while (this.hand.Count > count)
            {
                this.RequestPlayerDiscardCardFromHand(gameState, acceptableCard => true, isOptional: false);
            }
        }

Usage Example

Beispiel #1
0
 public override void DoSpecializedAttack(PlayerState currentPlayer, PlayerState otherPlayer, GameState gameState)
 {
     otherPlayer.DrawOneCardIntoHand();
     otherPlayer.RequestPlayerDiscardDownToCountInHand(gameState, 3);
 }
All Usage Examples Of Dominion.PlayerState::RequestPlayerDiscardDownToCountInHand
PlayerState