now the gunner definitely dies when he is killed by wolf at night

This commit is contained in:
Jimmy Cao 2011-07-27 20:34:48 -05:00
parent d4b3999316
commit ff3f22a2e5

View File

@ -971,9 +971,9 @@ def transition_day(cli, gameid=0):
wc.remove(crow) wc.remove(crow)
# don't kill off werecrows that observed # don't kill off werecrows that observed
deadwolf = random.choice(var.ROLES["wolf"]+wc) deadwolf = random.choice(var.ROLES["wolf"]+wc)
message.append(("The wolves made the fortunate mistake of attacking "+ cli.msg(chan, ("The wolves made the fortunate mistake of attacking "+
"a gunner last night, and \u0002{0}\u0002, a \u0002wolf\u0002,"+ "a gunner last night, and \u0002{0}\u0002, a \u0002wolf\u0002,"+
" was shot dead.").format(deadwolf)) " was shot dead.").format(deadwolf))
if not del_player(cli, deadwolf): if not del_player(cli, deadwolf):
return return
if var.VICTIM and (var.VICTIM not in var.ROLES["harlot"] or # not a harlot if var.VICTIM and (var.VICTIM not in var.ROLES["harlot"] or # not a harlot