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.
This commit is contained in:
parent
48547972e9
commit
0250f59fed
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user