fix regolamento di conti
This commit is contained in:
parent
1ebc4b4bd0
commit
c81a806a6b
@ -108,17 +108,20 @@ class RegolamentoDiConti(CardEvent):
|
|||||||
|
|
||||||
def on_clicked(self, game, player):
|
def on_clicked(self, game, player):
|
||||||
super().on_clicked(game, player)
|
super().on_clicked(game, player)
|
||||||
if len(player.hand) > 0:
|
if (
|
||||||
if not player.has_played_bang and any(
|
len(player.hand) > 0
|
||||||
|
and not player.has_played_bang
|
||||||
|
and any(
|
||||||
(
|
(
|
||||||
player.get_sight() >= p["dist"]
|
player.get_sight() >= p["dist"]
|
||||||
for p in game.get_visible_players(player)
|
for p in game.get_visible_players(player)
|
||||||
)
|
)
|
||||||
):
|
)
|
||||||
player.available_cards = player.hand.copy()
|
):
|
||||||
player.pending_action = players.PendingAction.CHOOSE
|
player.available_cards = player.hand.copy()
|
||||||
player.choose_text = "choose_play_as_bang"
|
player.pending_action = players.PendingAction.CHOOSE
|
||||||
player.notify_self()
|
player.choose_text = "choose_play_as_bang"
|
||||||
|
player.notify_self()
|
||||||
|
|
||||||
|
|
||||||
class Sacagaway(CardEvent):
|
class Sacagaway(CardEvent):
|
||||||
|
@ -2075,8 +2075,8 @@ class Player:
|
|||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
self.character.check(self.game, chars.CalamityJanet)
|
self.character.check(self.game, chars.CalamityJanet)
|
||||||
and cs.Bang(0, 0).name not in self.expected_response
|
or self.game.check_event(cew.RegolamentoDiConti)
|
||||||
):
|
) and cs.Bang(0, 0).name not in self.expected_response:
|
||||||
self.expected_response.append(cs.Bang(0, 0).name)
|
self.expected_response.append(cs.Bang(0, 0).name)
|
||||||
if self.character.check(self.game, chw.BigSpencer):
|
if self.character.check(self.game, chw.BigSpencer):
|
||||||
self.expected_response = []
|
self.expected_response = []
|
||||||
|
Loading…
Reference in New Issue
Block a user