public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState) { currentPlayer.MoveCardFromPlayedCardToIslandMat(this); if (!currentPlayer.hand.Any) return; Card cardType = currentPlayer.actions.GetCardFromHandToIsland(gameState); currentPlayer.MoveCardFromHandToIslandMat(cardType); }
public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState) { currentPlayer.MoveCardFromPlayedCardToIslandMat(this); if (!currentPlayer.hand.Any) return; Card cardType = currentPlayer.actions.GetCardFromHandToIsland(gameState); if (currentPlayer.Hand.Any && cardType == null) throw new Exception("Player must island a card from his hand"); if (cardType != null) { currentPlayer.MoveCardFromHandToIslandMat(cardType); gameState.gameLog.PlayerPlacedCardOnIslandMat(currentPlayer, cardType); } }