diff --git a/server/routes/games.js b/server/routes/games.js index 50a48ce..b6ca7e2 100755 --- a/server/routes/games.js +++ b/server/routes/games.js @@ -2195,7 +2195,10 @@ const playCard = (game, session, card) => { return `Robber is in action. You can not play a card until all Robber tasks are resolved.`; } - card = player.development.find(item => item.type == card.type && item.card == card.card); + card = player.development.find( + item => item.type == card.type + && item.card == card.card + && !card.played); if (!card) { return `The card you want to play was not found in your hand!`; } @@ -2204,10 +2207,6 @@ const playCard = (game, session, card) => { return `You can only play one development card per turn!`; } - if (card.played) { - return `You have already played this card.`; - } - /* Check if this is a victory point */ if (card.type === 'vp') { let points = player.points;