fix gold rush discard

This commit is contained in:
Alberto Xamin 2021-06-26 10:43:38 +02:00
parent 384ddce5dc
commit 5ff9b68e14
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -1124,7 +1124,7 @@ class Player:
'icon': p.role.icon if(self.game.initial_players == 3) else '⭐️' if isinstance(p.role, r.Sheriff) else '🤠',
'alt_text': ''.join(['🎴️'] * len(p.gold_rush_equipment)),
'noDesc': True
} for p in self.game.get_alive_players() if p != self and len([e for e in p.gold_rush_equipment if e.cost <= self.gold_nuggets + 1]) > 0]
} for p in self.game.get_alive_players() if p != self and len([e for e in p.gold_rush_equipment if e.number <= self.gold_nuggets + 1]) > 0]
self.available_cards.append({'icon': '', 'noDesc': True})
self.choose_text = 'gold_rush_discard'
self.pending_action = PendingAction.CHOOSE