mezzogiorno di fuoco
This commit is contained in:
parent
39377bbb31
commit
d6a84bbb88
@ -33,7 +33,7 @@ class Deck:
|
||||
print(f'Deck initialized with {len(self.cards)} cards')
|
||||
|
||||
def flip_event(self):
|
||||
if len(self.event_cards) > 0 and not isinstance(self.event_cards[0], ce.PerUnPugnoDiCarte):
|
||||
if len(self.event_cards) > 0 and not (isinstance(self.event_cards[0], ce.PerUnPugnoDiCarte) or isinstance(self.event_cards[0], ceh.MezzogiornoDiFuoco)):
|
||||
self.event_cards.append(self.event_cards.pop(0))
|
||||
self.game.notify_event_card()
|
||||
|
||||
|
@ -78,7 +78,7 @@ def get_all_events():
|
||||
Sparatoria(),
|
||||
]
|
||||
random.shuffle(cards)
|
||||
# cards.append(MezzogiornoDiFuoco())
|
||||
cards.append(MezzogiornoDiFuoco())
|
||||
for c in cards:
|
||||
c.expansion = 'high-noon'
|
||||
return cards
|
@ -321,6 +321,13 @@ class Player:
|
||||
self.has_played_bang = False
|
||||
self.special_use_count = 0
|
||||
self.bang_used = 0
|
||||
if self.game.check_event(ceh.MezzogiornoDiFuoco):
|
||||
self.lives -= 1
|
||||
if self.character.check(self.game, chars.BartCassidy) and self.lives > 0:
|
||||
self.hand.append(self.game.deck.draw(True))
|
||||
self.sio.emit('chat_message', room=self.game.name, data=f'_special_bart_cassidy|{self.name}')
|
||||
if self.lives <= 0:
|
||||
return self.notify_self()
|
||||
if self.game.check_event(ce.FratelliDiSangue) and self.lives > 1 and not self.is_giving_life and len([p for p in self.game.players if p != self and p.lives < p.max_lives]):
|
||||
self.available_cards = [{
|
||||
'name': p.name,
|
||||
|
Loading…
Reference in New Issue
Block a user