From 2584bebd4a6960736061148f2f9af8e17b41be8e Mon Sep 17 00:00:00 2001 From: skizzerz Date: Sat, 2 Aug 2014 13:35:17 -0500 Subject: [PATCH] Don't show gun message to wolves with 0 bullets. Closes #64 --- modules/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 5272af8..611d59e 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -3598,7 +3598,7 @@ def transition_night(cli): pl[i] = player + " (cursed)" pm(cli, wolf, "Players: " + ", ".join(pl)) - if wolf in var.WOLF_GUNNERS.keys(): + if wolf in var.WOLF_GUNNERS.keys() and var.WOLF_GUNNERS[wolf] > 0: pm(cli, wolf, "You have a \u0002gun\u0002 with {0} bullet{1}.".format(var.WOLF_GUNNERS[wolf], "s" if var.WOLF_GUNNERS[wolf] > 1 else "")) if var.ANGRY_WOLVES and role in ("wolf", "werecrow"): pm(cli, wolf, 'You are \u0002angry\u0002 tonight, and may kill two targets by using "kill and "')