fix dinamite, prigione lucky duke
This commit is contained in:
parent
e48fd93bb8
commit
07f4f5b92d
@ -74,7 +74,7 @@ class Player:
|
|||||||
self.max_lives = self.character.max_lives + self.role.health_mod
|
self.max_lives = self.character.max_lives + self.role.health_mod
|
||||||
self.lives = self.max_lives
|
self.lives = self.max_lives
|
||||||
self.hand = []
|
self.hand = []
|
||||||
self.equipment = []
|
self.equipment = [cs.Dinamite(1,1), cs.Prigione(1,1)]
|
||||||
self.pending_action = PendingAction.WAIT
|
self.pending_action = PendingAction.WAIT
|
||||||
|
|
||||||
def set_available_character(self, available):
|
def set_available_character(self, available):
|
||||||
@ -203,6 +203,7 @@ class Player:
|
|||||||
else:
|
else:
|
||||||
self.game.next_player().equipment.append(self.equipment.pop(i))
|
self.game.next_player().equipment.append(self.equipment.pop(i))
|
||||||
self.game.next_player().notify_self()
|
self.game.next_player().notify_self()
|
||||||
|
break
|
||||||
if any([isinstance(c, cs.Dinamite) or isinstance(c, cs.Prigione) for c in self.equipment]):
|
if any([isinstance(c, cs.Dinamite) or isinstance(c, cs.Prigione) for c in self.equipment]):
|
||||||
self.notify_self()
|
self.notify_self()
|
||||||
return
|
return
|
||||||
@ -218,7 +219,7 @@ class Player:
|
|||||||
self.game.deck.scrap(self.equipment.pop(i))
|
self.game.deck.scrap(self.equipment.pop(i))
|
||||||
self.end_turn(forced=True)
|
self.end_turn(forced=True)
|
||||||
return
|
return
|
||||||
else:
|
elif pickable_cards == 0:
|
||||||
self.game.deck.scrap(self.equipment.pop(i))
|
self.game.deck.scrap(self.equipment.pop(i))
|
||||||
break
|
break
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user