diff --git a/api/models/User.js b/api/models/User.js index 4ad4b4e77..9daca6aa3 100644 --- a/api/models/User.js +++ b/api/models/User.js @@ -40,13 +40,6 @@ module.exports = { collection: 'card', via: 'faceCards', }, - /** - * Id of a card in player's hand that cannot be played this turn - * @value null iff no card is frozen - */ - frozenId: { - model: 'card', - }, rank: { type: 'number', defaultsTo: 1000, diff --git a/src/routes/game/GameView.vue b/src/routes/game/GameView.vue index bc9168776..4dd107ecf 100644 --- a/src/routes/game/GameView.vue +++ b/src/routes/game/GameView.vue @@ -357,7 +357,7 @@ :suit="card.suit" :rank="card.rank" :is-selected="selectedCard && card.id === selectedCard.id" - :is-frozen="gameStore.player.frozenId === card.id || card.isFrozen" + :is-frozen="card.isFrozen" class="mt-2 transition-all" :is-hand-card="true" :data-player-hand-card="`${card.rank}-${card.suit}`" @@ -373,7 +373,7 @@ :suit="card.suit" :rank="card.rank" :is-selected="selectedCard && card.id === selectedCard.id" - :is-frozen="gameStore.player.frozenId === card.id || card.isFrozen" + :is-frozen="card.isFrozen" class="mt-2 transition-all" :is-hand-card="true" :data-player-hand-card="`${card.rank}-${card.suit}`"