fix emporio

This commit is contained in:
Alberto Xamin 2021-06-25 17:26:34 +02:00
parent 8f8deb2f1c
commit 283c732880
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -298,6 +298,7 @@ class Game:
nextPlayer = pls[(pls.index(self.players[self.turn])+(len(pls)-len(self.available_cards))) % len(pls)]
if len(self.available_cards) == 1:
nextPlayer.hand.append(self.available_cards.pop())
nextPlayer.notify_self()
self.sio.emit('emporio', room=self.name, data='{"name":"","cards":[]}')
self.players[self.turn].pending_action = pl.PendingAction.PLAY
self.players[self.turn].notify_self()