fix errori giulio

This commit is contained in:
Alberto Xamin 2020-11-28 11:25:57 +01:00
parent 5907379db8
commit 7444fba0d3
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@ class CatBalou(Card):
def play_card(self, player, against, _with=None):
if against != None and (len(player.game.get_player_named(against).hand) + len(player.game.get_player_named(against).equipment)) > 0:
if self.name != 'Rissa'
if self.name == 'Cat Balou':
super().play_card(player, against=against)
from bang.players import PendingAction
player.pending_action = PendingAction.CHOOSE

View File

@ -72,7 +72,7 @@ class Rissa(CatBalou):
player.game.deck.scrap(_with)
player.event_type = 'rissa'
super().play_card(player, against=[p.name for p in player.game.players if p != player and (len(p.hand)+len(p.equipment)) > 0][0])
player.sio.emit('chat_message', room=player.game.name, data=f'{player.name} ha giocato {self.name})
player.sio.emit('chat_message', room=player.game.name, data=f'{player.name} ha giocato {self.name}')
return True
return False