From 5ff9b68e14d05ba663f729022c7ac375edc34b8d Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Sat, 26 Jun 2021 10:43:38 +0200 Subject: [PATCH] fix gold rush discard --- backend/bang/players.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/bang/players.py b/backend/bang/players.py index 2afb9fd..2a277d7 100644 --- a/backend/bang/players.py +++ b/backend/bang/players.py @@ -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