From 339db52165e5f0bef93c804eb04bff2ea9cf950e Mon Sep 17 00:00:00 2001 From: skizzerz Date: Thu, 17 Jul 2014 21:23:14 -0500 Subject: [PATCH] Make village elder and death totem not able to be guarded against. Closes #5 --- modules/wolfgame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 1e23db4..07a22ae 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -1952,12 +1952,12 @@ def transition_day(cli, gameid=0): vlist = copy.copy(victims) novictmsg = True for victim in vlist: - if victim in var.PROTECTED: + if victim in var.PROTECTED and victim not in var.DYING: message.append(("\u0002{0}\u0002 was attacked last night, but their totem " + "emitted a brilliant flash of light, blinding the attacker and " + "allowing them to escape.").format(victim)) novictmsg = False - elif victim in var.GUARDED.values(): + elif victim in var.GUARDED.values() and victim not in var.DYING: for bodyguard in var.ROLES["bodyguard"]: if var.GUARDED.get(bodyguard) == victim: message.append(("\u0002{0}\u0002 was attacked last night, but luckily, the bodyguard was on duty.").format(victim))