Fix crash when already dead lover tries to commit suicide
This commit is contained in:
parent
49c04e6dcc
commit
e750fbae21
@ -1234,6 +1234,8 @@ def del_player(cli, nick, forced_death = False, devoice = True, end_game = True)
|
|||||||
for other in others:
|
for other in others:
|
||||||
if other not in var.list_players():
|
if other not in var.list_players():
|
||||||
continue # already died somehow
|
continue # already died somehow
|
||||||
|
if nick not in var.LOVERS[other]:
|
||||||
|
continue
|
||||||
var.LOVERS[other].remove(nick)
|
var.LOVERS[other].remove(nick)
|
||||||
if var.ROLE_REVEAL:
|
if var.ROLE_REVEAL:
|
||||||
role = var.get_reveal_role(other)
|
role = var.get_reveal_role(other)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user