1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-22 05:44:19 +00:00

Fixato loop infinito con il Terrorista

This commit is contained in:
Steffo 2017-07-25 19:00:42 +02:00
parent 6db6674d5e
commit f8a5a611c8

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:
if selectedplayer.votingfor == self.player and selectedplayer.alive:
self.player.game.message(s.terrorist_target_killed.format(target=selectedplayer.tusername, icon=selectedplayer.role.icon, role=selectedplayer.role.name))
selectedplayer.kill()