Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoxamin committed Nov 25, 2020
1 parent 292200e commit 333a7a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/players.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 333a7a8

Please sign in to comment.