From bd3fffaa6a6da80ddddf53c457e1edbb44c7a278 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Thu, 21 Jun 2018 15:59:58 -0700 Subject: [PATCH] !fgoat Vgr Fix people winning when they lose --- src/roles/clone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roles/clone.py b/src/roles/clone.py index 710fa8f..0e0ffb9 100644 --- a/src/roles/clone.py +++ b/src/roles/clone.py @@ -176,7 +176,7 @@ def on_exchange_roles(evt, var, actor, target, actor_role, target_role): @event_listener("player_win") def on_player_win(evt, var, player, role, winner, survived): # this means they ended game while being clone and not some other role - if survived and not winner.startswith("@") and singular(winner) not in var.WIN_STEALER_ROLES: + if role == "clone" and survived and not winner.startswith("@") and singular(winner) not in var.WIN_STEALER_ROLES: evt.data["iwon"] = True @event_listener("del_player")