fix rimbalzo

This commit is contained in:
Alberto Xamin 2020-12-22 21:52:06 +01:00
parent f15102ad10
commit 2beb1563ae
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 5 additions and 3 deletions

View File

@ -82,8 +82,8 @@ class Ranch(CardEvent):
class Rimbalzo(CardEvent): class Rimbalzo(CardEvent):
def __init__(self): def __init__(self):
super().__init__("Rimbalzo", "") super().__init__("Rimbalzo", "")
self.desc = "Il giocatore di turno può giocare bang contro le carte equipaggiate dagli altri giocatori, se non giocano mancato vengono scartate" self.desc = "Il giocatore di turno può giocare bang contro le carte equipaggiate dagli altri giocatori, se non giocano mancato vengono scartate (clicca la carta evento)"
self.desc_eng = "The player can play bang against the cards equipped by the other players, if they do not play miss they are discarded" self.desc_eng = "The player can play bang against the cards equipped by the other players, if they do not play miss they are discarded (click the event card)"
class RouletteRussa(CardEvent): class RouletteRussa(CardEvent):
def __init__(self): def __init__(self):

View File

@ -692,7 +692,9 @@ class Player:
self.attacker = attacker self.attacker = attacker
self.mancato_needed = 1 if not double else 2 self.mancato_needed = 1 if not double else 2
if card_index != None: if card_index != None:
self.dmg_card_index = None self.dmg_card_index = card_index
else:
self.dmg_card_index = -1
for i in range(len(self.equipment)): for i in range(len(self.equipment)):
if self.equipment[i].can_be_used_now: if self.equipment[i].can_be_used_now:
print('usable', self.equipment[i]) print('usable', self.equipment[i])