add desc on borraccia, fix apache logic
This commit is contained in:
parent
5eacffeb5c
commit
a069dcbcaf
@ -216,6 +216,7 @@ class Borraccia(Card):
|
||||
def __init__(self, suit, number):
|
||||
super().__init__(suit, 'Borraccia', number)
|
||||
self.icon = '🍼'
|
||||
self.desc = 'Recupera 1 vita'
|
||||
self.usable_next_turn = True
|
||||
self.can_be_used_now = False
|
||||
|
||||
|
@ -45,7 +45,7 @@ class MollyStark(Character):
|
||||
|
||||
class ApacheKid(Character):
|
||||
def __init__(self):
|
||||
super().__init__("Molly Stark", max_lives=3)
|
||||
super().__init__("Apache Kid", max_lives=3)
|
||||
self.desc = "Le carte di quadri ♦️ giocate contro di lui non hanno effetto (non vale durante i duelli)"
|
||||
self.icon = '♦️'
|
||||
|
||||
|
@ -265,9 +265,9 @@ class Player:
|
||||
if _with != None:
|
||||
withCard = self.hand.pop(_with) if hand_index > _with else self.hand.pop(_with - 1)
|
||||
print(self.name, 'is playing ', card, ' against:', against, ' with:', _with)
|
||||
did_play_card = card.play_card(self, against, withCard)
|
||||
if against != None and isinstance(self.game.get_player_named(against).character, chd.ApacheKid) and card.suit == cs.Suit.DIAMONDS:
|
||||
did_play_card = False
|
||||
did_play_card = False
|
||||
if not(against != None and isinstance(self.game.get_player_named(against).character, chd.ApacheKid) and card.suit == cs.Suit.DIAMONDS):
|
||||
did_play_card = card.play_card(self, against, withCard)
|
||||
if not card.is_equipment and not card.usable_next_turn:
|
||||
if did_play_card:
|
||||
self.game.deck.scrap(card)
|
||||
|
Loading…
Reference in New Issue
Block a user