From 3f9bf7468b0fc8c1426cc28fc3a843aa2c4d626f Mon Sep 17 00:00:00 2001 From: skizzerz Date: Wed, 27 Jan 2016 21:15:20 -0600 Subject: [PATCH] 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 --- src/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 581ef3e..d6816de 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -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