fix città fantasma

This commit is contained in:
Alberto Xamin 2020-12-24 14:13:06 +01:00
parent 5762306ab1
commit 64da96a0db
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 3 additions and 3 deletions

View File

@ -289,7 +289,7 @@ class Game:
self.player_bangs = 0
if isinstance(self.players[self.turn].role, roles.Sheriff):
self.deck.flip_event()
if len(self.deck.event_cards) > 0:
if len(self.deck.event_cards) > 0 and self.deck.event_cards[0] != None:
print(f'flip new event {self.deck.event_cards[0].name}')
if self.check_event(ce.DeadMan):
self.did_resuscitate_deadman = False

View File

@ -981,9 +981,9 @@ class Player:
if self.is_dead and self.is_ghost and self.game.check_event(ceh.CittaFantasma):
self.is_ghost = False
for i in range(len(self.hand)):
self.deck.scrap(self.hand.pop(), True)
self.game.deck.scrap(self.hand.pop(), True)
for i in range(len(self.equipment)):
self.deck.scrap(self.equipment.pop(), True)
self.game.deck.scrap(self.equipment.pop(), True)
self.pending_action = PendingAction.WAIT
self.notify_self()
self.game.next_turn()