We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a39ce8 commit 4fc0b78Copy full SHA for 4fc0b78
roles/Terrorista.py
@@ -18,6 +18,6 @@ def ondeath(self):
18
self.player.game.message(s.terrorist_kaboom)
19
for selectedplayer in self.player.game.players:
20
# Elimina ogni giocatore che sta votando per sè stesso
21
- if selectedplayer.votingfor == self.player and selectedplayer.alive:
+ if selectedplayer.votingfor == self.player and selectedplayer.alive and selectedplayer is not self.player:
22
self.player.game.message(s.terrorist_target_killed.format(target=selectedplayer.tusername, icon=selectedplayer.role.icon, role=selectedplayer.role.name))
23
selectedplayer.kill()
0 commit comments