fix mira for bots
This commit is contained in:
parent
72bb52d037
commit
ba6d8ddecb
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user