no double prigione

This commit is contained in:
Alberto Xamin 2023-04-04 16:41:36 +01:00
parent f3f515318a
commit 6c611aec0b
No known key found for this signature in database
GPG Key ID: 5ABFCD8A22EA6F5D

View File

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