From e05663d1c7182f79bfd5e5d50ee9c2caa72c8dbc Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Wed, 25 Feb 2026 09:20:19 -0500 Subject: [PATCH] Add unplayable keyword to playCard --- src/state.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/state.js b/src/state.js index 9b8ed8b..a5cc1bb 100644 --- a/src/state.js +++ b/src/state.js @@ -162,9 +162,8 @@ export function playCard(state, handIndex, opts = {}) { const player = state.players[playerIndex]; const cardId = player.hand[handIndex]; const card = getCard(cardId); - if (player.energy < card.cost) return null; - if (card.keywords?.includes("unplayable")) return null; + if (player.energy < card.cost) return null; const hand = [...player.hand]; hand.splice(handIndex, 1);