From 250e7d7462214dd91702f95dc797992cc3d66a4b Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 5 Sep 2014 19:43:26 -0400 Subject: [PATCH] fix error when exchange totem happens and wolves are angry --- modules/wolfgame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 40c0048..cb69bdb 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -3021,7 +3021,7 @@ def check_exchange(cli, actor, nick): pm(cli, actor, "Players: " + ", ".join(pl)) if var.DISEASED_WOLVES: pm(cli, actor, 'You are feeling ill tonight, and are unable to kill anyone.') - elif var.ANGRY_WOLVES and role in ("wolf", "werecrow"): + elif var.ANGRY_WOLVES and actor_role in ("wolf", "werecrow"): pm(cli, actor, 'You are \u0002angry\u0002 tonight, and may kill two targets by using "kill and "') elif nick_role == "minion": wolves = var.list_players(var.WOLF_ROLES) @@ -3052,7 +3052,7 @@ def check_exchange(cli, actor, nick): pm(cli, nick, "Players: " + ", ".join(pl)) if var.DISEASED_WOLVES: pm(cli, nick, 'You are feeling ill tonight, and are unable to kill anyone.') - elif var.ANGRY_WOLVES and role in ("wolf", "werecrow"): + elif var.ANGRY_WOLVES and nick_role in ("wolf", "werecrow"): pm(cli, nick, 'You are \u0002angry\u0002 tonight, and may kill two targets by using "kill and "') elif actor_role == "minion": wolves = var.list_players(var.WOLF_ROLES)