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:
parent
6a39ce8c19
commit
4fc0b780c1
1 changed files with 1 additions and 1 deletions
|
@ -18,6 +18,6 @@ class Terrorista(Role):
|
||||||
self.player.game.message(s.terrorist_kaboom)
|
self.player.game.message(s.terrorist_kaboom)
|
||||||
for selectedplayer in self.player.game.players:
|
for selectedplayer in self.player.game.players:
|
||||||
# Elimina ogni giocatore che sta votando per sè stesso
|
# 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))
|
self.player.game.message(s.terrorist_target_killed.format(target=selectedplayer.tusername, icon=selectedplayer.role.icon, role=selectedplayer.role.name))
|
||||||
selectedplayer.kill()
|
selectedplayer.kill()
|
||||||
|
|
Loading…
Reference in a new issue