Merge branch 'main' of https://github.com/albertoxamin/bang into main
This commit is contained in:
commit
3c3180d0c8
@ -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)):
|
||||
|
Loading…
Reference in New Issue
Block a user