Fix accepting draw via API when not able to send draw
parent
52e7f7cf3c
commit
b2647e1841
|
@ -91,7 +91,7 @@ final class BotPlayer(
|
|||
tellRound(pov.gameId, DrawNo(PlayerId(pov.playerId)))
|
||||
|
||||
def offerDraw(pov: Pov): Unit =
|
||||
if (pov.game.drawable && pov.game.playerCanOfferDraw(pov.color))
|
||||
if (pov.game.drawable && (pov.game.playerCanOfferDraw(pov.color) || pov.opponent.isOfferingDraw))
|
||||
tellRound(pov.gameId, DrawYes(PlayerId(pov.playerId)))
|
||||
|
||||
def setDraw(pov: Pov, v: Boolean): Unit =
|
||||
|
|
Loading…
Reference in New Issue