public override void DoSpecializedAttack(PlayerState currentPlayer, PlayerState otherPlayer, GameState gameState) { otherPlayer.DiscardCardFromTopOfDeck(); otherPlayer.GainCardFromSupply(Curse.card, gameState, DeckPlacement.TopOfDeck); }
public override void DoSpecializedAttack(PlayerState currentPlayer, PlayerState otherPlayer, GameState gameState) { Card discardedCard = otherPlayer.DiscardCardFromTopOfDeck(); if (discardedCard != null) { if (discardedCard.isVictory) { otherPlayer.GainCardFromSupply(Cards.Curse, gameState); } else if (currentPlayer.actions.ShouldGainCard(gameState, discardedCard)) { currentPlayer.GainCardFromSupply(gameState, discardedCard); } else { otherPlayer.GainCardFromSupply(gameState, discardedCard); } } }