From 6eb1ce44e132820c2fd101b342bb6fcceb7be76a Mon Sep 17 00:00:00 2001 From: "Vgr E. Barry" Date: Mon, 2 Nov 2015 21:33:13 -0500 Subject: [PATCH] Special-case lynched fool --- src/wolfgame.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 0c27edc..8cef9da 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -2212,7 +2212,10 @@ def chk_decision(cli, force = ""): # roles that end the game upon being lynched if votee in var.ROLES["fool"]: # ends game immediately, with fool as only winner - lmsg = random.choice(var.LYNCH_MESSAGES).format(votee, "", var.get_reveal_role(votee)) + # we don't need var.get_reveal_role as the game ends on this point + # point: games with role reveal turned off will still call out fool + # games with team reveal will be inconsistent, but this is by design, not a bug + lmsg = random.choice(var.LYNCH_MESSAGES).format(votee, "", var.get_role(votee)) cli.msg(botconfig.CHANNEL, lmsg) if chk_win(cli, winner="@" + votee): return