From 0250f59fede1bae9e9b16179353d67ea25512a16 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Thu, 31 Dec 2015 15:36:40 -0700 Subject: [PATCH] Fix deceit totems not canceling out properly for seer If both seer and target have deceit totem, the result should be printed normally (e.g. the totems cancel out). They were not doing that previously, as it would route all non-village non-wolf roles into villager (e.g. harlot -> villager). Let's fix that. --- src/wolfgame.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 3fc5ba7..6e16473 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -5806,13 +5806,7 @@ def see(cli, nick, chan, rest): victimrole = var.DEFAULT_ROLE if var.DEFAULT_SEEN_AS_VILL: victimrole = "villager" - if victim in var.DECEIVED: - if victimrole == "wolf": - victimrole = "villager" - else: - victimrole = "wolf" - - if nick in var.DECEIVED: # it DOES stack! so if both victim and seer have the totem, it's canceled out + if (victim in var.DECEIVED) ^ (nick in var.DECEIVED): if victimrole == "wolf": victimrole = "villager" else: