fix ghost draw

dutch will & Kit Carlson
This commit is contained in:
Giulio 2022-06-02 09:39:30 +02:00
parent 469c2c0d57
commit 7fe4d3680d
2 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,7 @@ class JoshMcCloud(Character):
if player.gold_nuggets >= 2 and player.is_my_turn:
player.gold_nuggets -= 2
card = player.game.deck.shop_deck.pop(0)
print(f'{player.name} ha comprato usando la abilità speciale {card.name}')
if card.play_card(player):
player.game.deck.shop_deck.append(card)
player.notify_self()

View File

@ -456,13 +456,13 @@ class Player:
self.lives += 1
self.pending_action = PendingAction.PLAY
self.notify_self()
elif self.character.check(self.game, chars.KitCarlson):
elif self.character.check(self.game, chars.KitCarlson) and not self.is_ghost:
self.is_drawing = True
self.available_cards = [self.game.deck.draw() for i in range(3)]
self.choose_text = 'choose_card_to_get'
self.pending_action = PendingAction.CHOOSE
self.notify_self()
elif self.character.check(self.game, grch.DutchWill):
elif self.character.check(self.game, grch.DutchWill) and not self.is_ghost:
self.is_drawing = True
self.available_cards = [self.game.deck.draw() for i in range(2)]
self.choose_text = 'choose_card_to_get'