From 333a7a89ec5355f053c21e4e987ad364fd28c9a1 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Wed, 25 Nov 2020 11:47:00 +0100 Subject: [PATCH] fix bug --- backend/players.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/players.py b/backend/players.py index 5415f7ce..63cbd1fd 100644 --- a/backend/players.py +++ b/backend/players.py @@ -234,7 +234,7 @@ def get_playable_cards(self): elif isinstance(card, cs.Birra) and self.lives >= self.max_lives: continue else: - playable_cs.append(i) + playable_cards.append(i) return playable_cards def get_public_description(self): @@ -301,9 +301,9 @@ def choose(self, card_index): self.notify_self() # specifico per personaggio elif self.is_drawing and isinstance(self.character, chars.KitCarlson): - self.hand.append(self.available_cs.pop(card_index)) + self.hand.append(self.available_cards.pop(card_index)) if len(self.available_cards) == 1: - self.game.deck.put_on_top(self.available_cs.pop()) + self.game.deck.put_on_top(self.available_cards.pop()) self.is_drawing = False self.pending_action = PendingAction.PLAY self.notify_self()