no double prigione
This commit is contained in:
parent
f3f515318a
commit
6c611aec0b
@ -218,8 +218,10 @@ class Prigione(Card):
|
|||||||
) -> bool:
|
) -> bool:
|
||||||
if player.game.check_event(ce.IlGiudice):
|
if player.game.check_event(ce.IlGiudice):
|
||||||
return False
|
return False
|
||||||
if against is not None and not isinstance(
|
if (
|
||||||
player.game.get_player_named(against).role, r.Sheriff
|
against is not None
|
||||||
|
and not isinstance(player.game.get_player_named(against).role, r.Sheriff)
|
||||||
|
and not self.is_duplicate_card(player.game.get_player_named(against))
|
||||||
):
|
):
|
||||||
self.can_be_used_now = False
|
self.can_be_used_now = False
|
||||||
G.sio.emit(
|
G.sio.emit(
|
||||||
|
Loading…
Reference in New Issue
Block a user