summaryrefslogtreecommitdiff
path: root/sw-engine
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@gmail.com>2021-02-28 21:42:06 +0100
committerJoffrey Bion <joffrey.bion@gmail.com>2021-02-28 21:42:06 +0100
commit4647f3ad469b527c0716be30f8bb7ff382eba3bd (patch)
tree0fda05b8fb376e337ba3aa868ee1ca0b75ed0eaf /sw-engine
parentImproved state (diff)
downloadseven-wonders-4647f3ad469b527c0716be30f8bb7ff382eba3bd.tar.gz
seven-wonders-4647f3ad469b527c0716be30f8bb7ff382eba3bd.tar.bz2
seven-wonders-4647f3ad469b527c0716be30f8bb7ff382eba3bd.zip
Fix empty guilds check
Diffstat (limited to 'sw-engine')
-rw-r--r--sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt2
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)
}
}
bgstack15