Merge pull request #12 from nyuszika7h/fix-lover-crash

Fix crash when already dead lover tries to commit suicide
This commit is contained in:
Ryan Schmidt 2014-07-16 18:37:54 -05:00
commit 68ad9d435d

View File

@ -1234,6 +1234,8 @@ def del_player(cli, nick, forced_death = False, devoice = True, end_game = True)
for other in others:
if other not in var.list_players():
continue # already died somehow
if nick not in var.LOVERS[other]:
continue
var.LOVERS[other].remove(nick)
if var.ROLE_REVEAL:
role = var.get_reveal_role(other)