fix mira for bots

This commit is contained in:
Alberto Xamin 2023-04-02 15:09:25 +01:00
parent 72bb52d037
commit ba6d8ddecb
No known key found for this signature in database
GPG Key ID: 5ABFCD8A22EA6F5D
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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