Make village elder and death totem not able to be guarded against. Closes #5
This commit is contained in:
parent
6e43f60974
commit
339db52165
@ -1952,12 +1952,12 @@ def transition_day(cli, gameid=0):
|
|||||||
vlist = copy.copy(victims)
|
vlist = copy.copy(victims)
|
||||||
novictmsg = True
|
novictmsg = True
|
||||||
for victim in vlist:
|
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 " +
|
message.append(("\u0002{0}\u0002 was attacked last night, but their totem " +
|
||||||
"emitted a brilliant flash of light, blinding the attacker and " +
|
"emitted a brilliant flash of light, blinding the attacker and " +
|
||||||
"allowing them to escape.").format(victim))
|
"allowing them to escape.").format(victim))
|
||||||
novictmsg = False
|
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"]:
|
for bodyguard in var.ROLES["bodyguard"]:
|
||||||
if var.GUARDED.get(bodyguard) == victim:
|
if var.GUARDED.get(bodyguard) == victim:
|
||||||
message.append(("\u0002{0}\u0002 was attacked last night, but luckily, the bodyguard was on duty.").format(victim))
|
message.append(("\u0002{0}\u0002 was attacked last night, but luckily, the bodyguard was on duty.").format(victim))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user