From ac78e46e91a2dae77e61511964b7364fe1f8fc7a Mon Sep 17 00:00:00 2001 From: skizzerz Date: Fri, 19 Aug 2016 23:46:04 -0500 Subject: [PATCH] Fix VG win attribution --- src/roles/vengefulghost.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/roles/vengefulghost.py b/src/roles/vengefulghost.py index 5b3f5b2..21e94cb 100644 --- a/src/roles/vengefulghost.py +++ b/src/roles/vengefulghost.py @@ -75,14 +75,14 @@ def on_player_win(evt, cli, var, nick, role, winner, survived): evt.data["special"].append("vg driven off") against = against[1:] if against == "villagers" and winner == "wolves": - won = True - iwon = True + evt.data["won"] = True + evt.data["iwon"] = True elif against == "wolves" and winner == "villagers": - won = True - iwon = True + evt.data["won"] = True + evt.data["iwon"] = True else: - won = False - iwon = False + evt.data["won"] = False + evt.data["iwon"] = False @event_listener("del_player", priority=6) def on_del_player(evt, cli, var, nick, nickrole, nicktpls, death_triggers):