Fix clone taking on the role of someone when they're also dying
This only happens for simultaneous deaths (e.g. night deaths), as chained deaths are resolved in a fashion that makes it impossible for the clone to know he is also dying until after he inherits the new role. Closes #214
This commit is contained in:
parent
16a8a86e4a
commit
3f9bf7468b
@ -2776,7 +2776,7 @@ def del_player(cli, nick, forced_death=False, devoice=True, end_game=True, death
|
||||
if var.PHASE in ("night", "day"):
|
||||
clones = copy.copy(var.ROLES["clone"])
|
||||
for clone in clones:
|
||||
if clone in var.CLONED:
|
||||
if clone in var.CLONED and clone not in deadlist:
|
||||
target = var.CLONED[clone]
|
||||
if nick == target and clone in var.CLONED:
|
||||
# clone is cloning nick, so clone becomes nick's role
|
||||
|
Loading…
x
Reference in New Issue
Block a user