fix volcanic and dead man bug
This commit is contained in:
parent
c937a322fe
commit
f864dc03bf
@ -180,7 +180,8 @@ class Bang(Card):
|
|||||||
self.need_target = True
|
self.need_target = True
|
||||||
|
|
||||||
def play_card(self, player, against, _with=None):
|
def play_card(self, player, against, _with=None):
|
||||||
if player.has_played_bang and not any([isinstance(c, Volcanic) for c in player.equipment]) and against != None:
|
import bang.expansions.fistful_of_cards.card_events as ce
|
||||||
|
if player.has_played_bang and (not any([isinstance(c, Volcanic) for c in player.equipment]) or player.game.check_event(ce.Lazo)) and against != None:
|
||||||
return False
|
return False
|
||||||
elif against != None:
|
elif against != None:
|
||||||
import bang.characters as chars
|
import bang.characters as chars
|
||||||
|
@ -99,6 +99,13 @@ class JoseDelgrado(Character):
|
|||||||
self.desc_eng = "He can discard a blue card to draw 2 cards."
|
self.desc_eng = "He can discard a blue card to draw 2 cards."
|
||||||
self.icon = '🎒'
|
self.icon = '🎒'
|
||||||
|
|
||||||
|
class DocHolyday(Character):
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__("Doc Holyday", max_lives=4)
|
||||||
|
self.desc = "Nel suo turno può scartare 2 carte per fare un bang."
|
||||||
|
self.desc_eng = "He can discard 2 cards to play a bang."
|
||||||
|
self.icon = '✌🏻'
|
||||||
|
|
||||||
def all_characters() -> List[Character]:
|
def all_characters() -> List[Character]:
|
||||||
return [
|
return [
|
||||||
PixiePete(),
|
PixiePete(),
|
||||||
@ -115,6 +122,7 @@ def all_characters() -> List[Character]:
|
|||||||
ChuckWengam(),
|
ChuckWengam(),
|
||||||
PatBrennan(),
|
PatBrennan(),
|
||||||
JoseDelgrado(),
|
JoseDelgrado(),
|
||||||
|
# DocHolyday(),
|
||||||
]
|
]
|
||||||
|
|
||||||
#Apache Kid: il suo effetto non conta nei duelli
|
#Apache Kid: il suo effetto non conta nei duelli
|
||||||
|
@ -225,6 +225,7 @@ class Game:
|
|||||||
self.players[-1].lives = 2
|
self.players[-1].lives = 2
|
||||||
self.players[-1].hand.append(self.deck.draw())
|
self.players[-1].hand.append(self.deck.draw())
|
||||||
self.players[-1].hand.append(self.deck.draw())
|
self.players[-1].hand.append(self.deck.draw())
|
||||||
|
self.players_map = {c.name: i for i, c in enumerate(self.players)}
|
||||||
self.players[-1].notify_self()
|
self.players[-1].notify_self()
|
||||||
self.players[self.turn].play_turn()
|
self.players[self.turn].play_turn()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user