summaryrefslogtreecommitdiff
path: root/sw-bot
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2020-12-13 01:39:06 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2020-12-13 01:40:51 +0100
commit2d5117911c11fafc3c287e2ee74149f866c41954 (patch)
tree5b4dce07c2097a3f0e6b140ce5005d154d2c9c57 /sw-bot
parentAdd logging of BOT status (diff)
downloadseven-wonders-2d5117911c11fafc3c287e2ee74149f866c41954.tar.gz
seven-wonders-2d5117911c11fafc3c287e2ee74149f866c41954.tar.bz2
seven-wonders-2d5117911c11fafc3c287e2ee74149f866c41954.zip
Only transfer ownership to humans
Resolve: https://github.com/joffrey-bion/seven-wonders/issues/73
Diffstat (limited to 'sw-bot')
-rw-r--r--sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt2
1 files changed, 1 insertions, 1 deletions
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()
bgstack15