on leave, return cards to deck
This commit is contained in:
parent
1b1edf508d
commit
9dc387dadd
1 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,11 @@ class Player(object):
|
||||||
self.next = None
|
self.next = None
|
||||||
self.prev = None
|
self.prev = None
|
||||||
|
|
||||||
|
for card in self.cards:
|
||||||
|
self.game.deck.dismiss(card)
|
||||||
|
|
||||||
|
self.cards = list()
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return repr(self.user)
|
return repr(self.user)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue