diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 01:27:38 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 01:29:23 +0100 |
commit | 8ae440c5005d56599afeed2ffb9a1aec13a9579c (patch) | |
tree | 047bd9bdb7b89f20fb3f489552bbff7fa0e62e37 | |
parent | Fix non-neighbour boards order (diff) | |
download | seven-wonders-8ae440c5005d56599afeed2ffb9a1aec13a9579c.tar.gz seven-wonders-8ae440c5005d56599afeed2ffb9a1aec13a9579c.tar.bz2 seven-wonders-8ae440c5005d56599afeed2ffb9a1aec13a9579c.zip |
Show all cards as playable when special free card ability
Resolves:
https://github.com/joffrey-bion/seven-wonders/issues/110
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt | 3 |
1 files changed, 2 insertions, 1 deletions
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<HandProps, RState>(props) { block() cardImage(card) { css { - handCardImgStyle(card.playability.isPlayable) + val isPlayable = card.playability.isPlayable || props.turnInfo.getOwnBoard().canPlayAnyCardForFree + handCardImgStyle(isPlayable) } } actionButtons(card) |