diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2020-12-13 01:39:06 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2020-12-13 01:40:51 +0100 |
commit | 2d5117911c11fafc3c287e2ee74149f866c41954 (patch) | |
tree | 5b4dce07c2097a3f0e6b140ce5005d154d2c9c57 /sw-bot | |
parent | Add logging of BOT status (diff) | |
download | seven-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.kt | 2 |
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() |