From 8ae440c5005d56599afeed2ffb9a1aec13a9579c Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Wed, 10 Feb 2021 01:27:38 +0100 Subject: Show all cards as playable when special free card ability Resolves: https://github.com/joffrey-bion/seven-wonders/issues/110 --- .../src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw-ui/src/main/kotlin') diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt index 59ab12ce..85f78cb3 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt @@ -70,7 +70,8 @@ class HandComponent(props: HandProps) : RComponent(props) { block() cardImage(card) { css { - handCardImgStyle(card.playability.isPlayable) + val isPlayable = card.playability.isPlayable || props.turnInfo.getOwnBoard().canPlayAnyCardForFree + handCardImgStyle(isPlayable) } } actionButtons(card) -- cgit