fix heal in roulette event

This commit is contained in:
Giulio 2022-03-22 13:55:55 +01:00
parent 2e0bfc240c
commit 0ed50022f1
2 changed files with 2 additions and 3 deletions

View File

@ -398,7 +398,8 @@ class Game:
if did_lose: if did_lose:
target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)] target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)]
print(f'{self.name}: stop roulette') print(f'{self.name}: stop roulette')
target_pl.lives -= 1 target_pl.lives -= 2
target_pl.heal_if_needed()
if len([c for c in target_pl.gold_rush_equipment if isinstance(c, grc.Talismano)]) > 0: if len([c for c in target_pl.gold_rush_equipment if isinstance(c, grc.Talismano)]) > 0:
target_pl.gold_nuggets += 1 target_pl.gold_nuggets += 1
if target_pl.character.check(self, grch.SimeonPicos): if target_pl.character.check(self, grch.SimeonPicos):
@ -409,7 +410,6 @@ class Game:
self.is_russian_roulette_on = False self.is_russian_roulette_on = False
self.players[self.turn].play_turn() self.players[self.turn].play_turn()
else: else:
self.player_bangs += 1
target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)] target_pl = pls[(pls.index(self.players[self.turn]) + self.player_bangs) % len(pls)]
print(f'{self.name}: next in line {target_pl.name}') print(f'{self.name}: next in line {target_pl.name}')
if target_pl.get_banged(self.deck.event_cards[0]): if target_pl.get_banged(self.deck.event_cards[0]):

View File

@ -166,7 +166,6 @@ class Player:
},{ },{
'icon': '', 'icon': '',
'noDesc': True 'noDesc': True
}] }]
self.is_drawing = True self.is_drawing = True
self.choose_text = 'choose_guess' self.choose_text = 'choose_guess'