From 2d5117911c11fafc3c287e2ee74149f866c41954 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Sun, 13 Dec 2020 01:39:06 +0100 Subject: Only transfer ownership to humans Resolve: https://github.com/joffrey-bion/seven-wonders/issues/73 --- sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-bot') diff --git a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt index d0331c15..17619f6a 100644 --- a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt +++ b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt @@ -37,7 +37,7 @@ class SevenWondersBot( suspend fun play(serverUrl: String, gameId: Long) = withTimeout(botConfig.globalTimeout) { val session = client.connect(serverUrl) - val player = session.chooseName(displayName, Icon("desktop")) + val player = session.chooseName(displayName, Icon("desktop"), isHuman = false) val gameStartedEvents = session.watchGameStarted() session.joinGameAndWaitLobby(gameId) val firstTurn = gameStartedEvents.first() -- cgit