From 4647f3ad469b527c0716be30f8bb7ff382eba3bd Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sun, 28 Feb 2021 21:42:06 +0100 Subject: Fix empty guilds check --- sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-engine') 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) } } -- cgit