Merge branch 'main' of https://github.com/albertoxamin/bang into main

This commit is contained in:
Alberto Xamin 2020-11-25 11:21:53 +01:00
commit 3c3180d0c8
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -387,6 +387,7 @@ class Player:
elif isinstance(self.character, chars.ElGringo) and self.attacker and len(self.attacker.hand) > 0:
self.hand.append(self.attacker.hand.pop(
randrange(0, len(self.attacker.hand))))
self.sio.emit('chat_message', room=self.game.name, data=f'{self.name} ha rubato una carta a {self.attacker.name} mentre veniva colpito.')
self.attacker.notify_self()
while self.lives <= 0 and len(self.game.players) > 2 and len([c for c in self.hand if isinstance(c, cs.Birra)]) > 0:
for i in range(len(self.hand)):