fix hunter being able to use 'pass' after killing on a previous night (ending night early)

This commit is contained in:
jacob1 2015-09-08 23:24:38 -04:00
parent 0246698b87
commit 4257de5f76

View File

@ -5486,6 +5486,9 @@ def pass_cmd(cli, nick, chan, rest):
if nick in var.OTHER_KILLS.keys():
del var.OTHER_KILLS[nick]
var.HUNTERS.remove(nick)
if nick in var.HUNTERS:
pm(cli, nick, "You have already killed someone this game.")
return
pm(cli, nick, "You have decided not to kill anyone tonight.")
var.PASSED.add(nick)