From 4fc0b780c13afdea4c24accfefead26a42d17521 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 25 Jul 2017 23:45:55 +0200 Subject: [PATCH] Terrorista strikes back (#61) ty @obsidiansin --- roles/Terrorista.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/Terrorista.py b/roles/Terrorista.py index fa3d337..38e981c 100644 --- a/roles/Terrorista.py +++ b/roles/Terrorista.py @@ -18,6 +18,6 @@ class Terrorista(Role): self.player.game.message(s.terrorist_kaboom) for selectedplayer in self.player.game.players: # Elimina ogni giocatore che sta votando per sè stesso - if selectedplayer.votingfor == self.player and selectedplayer.alive: + if selectedplayer.votingfor == self.player and selectedplayer.alive and selectedplayer is not self.player: self.player.game.message(s.terrorist_target_killed.format(target=selectedplayer.tusername, icon=selectedplayer.role.icon, role=selectedplayer.role.name)) selectedplayer.kill()