diff --git a/backend/bang/cards.py b/backend/bang/cards.py index 8719d59..fbe447c 100644 --- a/backend/bang/cards.py +++ b/backend/bang/cards.py @@ -80,7 +80,7 @@ class Card(ABC): self.must_be_used = False def play_card( - self, player: Player, against: str = None, _with: int = None + self, player: Player, against: str = None, _with: Card = None ): # self --> carta if ( (player.game.check_event(ce.IlGiudice)) diff --git a/backend/bang/expansions/the_valley_of_shadows/cards.py b/backend/bang/expansions/the_valley_of_shadows/cards.py index aa74fe0..b178257 100644 --- a/backend/bang/expansions/the_valley_of_shadows/cards.py +++ b/backend/bang/expansions/the_valley_of_shadows/cards.py @@ -220,7 +220,7 @@ class Mira(Card): self.need_with = True def play_card(self, player, against, _with=None): - if against is not None and _with is not None: + if against is not None and _with is not None and _with.name == "Bang!": super().play_card(player, against=against, _with=_with) player.game.attack(player, against, card_name=self.name) return True