fix vera after pick and disconnect notify

This commit is contained in:
Alberto Xamin 2020-12-17 14:02:11 +01:00
parent e94c1b634a
commit 9f15925bf1
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 6 additions and 1 deletions

View File

@ -236,6 +236,8 @@ class Game:
if player in self.players:
if self.disconnect_bot and self.started:
player.is_bot = True
eventlet.sleep(15) # he may reconnect
player.notify_self()
else:
self.player_death(player=player, disconnected=True)
else:

View File

@ -391,7 +391,10 @@ class Player:
if any([isinstance(c, cs.Prigione) for c in self.equipment]):
self.notify_self()
return
self.pending_action = PendingAction.DRAW
if isinstance(self.real_character, chd.VeraCuster):
self.set_available_character([p.character for p in self.game.players if p != self])
else:
self.pending_action = PendingAction.DRAW
self.notify_self()
else:
self.pending_action = PendingAction.WAIT