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.
This commit is contained in:
nyuszika7h 2013-08-26 16:30:28 +02:00
parent e13cd35114
commit f49e7371b8

View File

@ -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))