fix double death

This commit is contained in:
Alberto Xamin 2020-12-13 00:19:51 +01:00
parent 5557924934
commit 90b6aad809
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -228,6 +228,7 @@ class Game:
else: return False
def player_death(self, player: players.Player, disconnected=False):
if not player in self.players: return
import bang.expansions.dodge_city.characters as chd
print(player.attacker)
if player.attacker and isinstance(player.attacker.role, roles.Sheriff) and isinstance(player.role, roles.Vice):