From f49e7371b877c2eadf1dd720084f1cee374922ad Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 26 Aug 2013 16:30:28 +0200 Subject: [PATCH] Prevent visited harlot from being killed At 12 players, there are two harlots, and they can visit each other. This is intended to make both of them invincible, but the actual behavior was that the one visiting the victim would die. --- modules/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 4856ceb..2845cfd 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -1403,7 +1403,7 @@ def transition_day(cli, gameid=0): dead.append(deadwolf) if victim in var.HVISITED.values(): # victim was visited by some harlot for hlt in var.HVISITED.keys(): - if var.HVISITED[hlt] == victim: + if var.HVISITED[hlt] == victim and victim in dead: message.append(("\02{0}\02, a \02harlot\02, made the unfortunate mistake of "+ "visiting the victim's house last night and is "+ "now dead.").format(hlt))