fix double death
This commit is contained in:
parent
5557924934
commit
90b6aad809
@ -228,6 +228,7 @@ class Game:
|
|||||||
else: return False
|
else: return False
|
||||||
|
|
||||||
def player_death(self, player: players.Player, disconnected=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
|
import bang.expansions.dodge_city.characters as chd
|
||||||
print(player.attacker)
|
print(player.attacker)
|
||||||
if player.attacker and isinstance(player.attacker.role, roles.Sheriff) and isinstance(player.role, roles.Vice):
|
if player.attacker and isinstance(player.attacker.role, roles.Sheriff) and isinstance(player.role, roles.Vice):
|
||||||
|
Loading…
Reference in New Issue
Block a user