1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-25 07:04:18 +00:00

Terrorista strikes back (#61) ty @obsidiansin

This commit is contained in:
Steffo 2017-07-25 23:45:55 +02:00
parent 6a39ce8c19
commit 4fc0b780c1

View file

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