diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2021-02-28 21:42:06 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@gmail.com> | 2021-02-28 21:42:06 +0100 |
commit | 4647f3ad469b527c0716be30f8bb7ff382eba3bd (patch) | |
tree | 0fda05b8fb376e337ba3aa868ee1ca0b75ed0eaf /sw-engine/src/main/kotlin/org | |
parent | Improved state (diff) | |
download | seven-wonders-4647f3ad469b527c0716be30f8bb7ff382eba3bd.tar.gz seven-wonders-4647f3ad469b527c0716be30f8bb7ff382eba3bd.tar.bz2 seven-wonders-4647f3ad469b527c0716be30f8bb7ff382eba3bd.zip |
Fix empty guilds check
Diffstat (limited to 'sw-engine/src/main/kotlin/org')
-rw-r--r-- | sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt index 77b67f9d..6c44c7b3 100644 --- a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt +++ b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt @@ -95,7 +95,7 @@ class Game internal constructor( private fun computeEndGameAction(player: Player): TurnAction { val guilds = table.getNeighbourGuildCards(player.index).toHandCards(player, true) return when { - player.canCopyGuild() && guilds.isEmpty() -> TurnAction.PickNeighbourGuild(guilds) + player.canCopyGuild() && guilds.isNotEmpty() -> TurnAction.PickNeighbourGuild(guilds) else -> TurnAction.Wait(ActionMessages.WAIT_OTHER_PICK_GUILD) } } |