check if game ends when bitten/amnesiac turn, instead of sending out PMs and continuing it
This commit is contained in:
parent
22ad235620
commit
47f4f77f10
@ -4804,6 +4804,10 @@ def transition_night(cli):
|
||||
for elder in var.ROLES["village elder"]:
|
||||
var.DYING.append(elder)
|
||||
|
||||
# game ended from bitten / amnesiac turning, narcolepsy totem expiring, or other weirdness
|
||||
if chk_win(cli):
|
||||
return
|
||||
|
||||
# send PMs
|
||||
ps = var.list_players()
|
||||
wolves = var.list_players(var.WOLFCHAT_ROLES)
|
||||
@ -5269,11 +5273,6 @@ def transition_night(cli):
|
||||
var.LOGGER.logMessage(dmsg.replace("\02", ""))
|
||||
var.LOGGER.logBare("NIGHT", "BEGIN")
|
||||
|
||||
# cli.msg(chan, "DEBUG: "+str(var.ROLES))
|
||||
if len(var.list_players(var.WOLF_ROLES)) - len(var.ROLES["wolf cub"]) == 0 or var.DISEASED_WOLVES: # Probably something interesting going on.
|
||||
chk_nightdone(cli)
|
||||
chk_traitor(cli)
|
||||
|
||||
|
||||
|
||||
def cgamemode(cli, arg):
|
||||
|
Loading…
x
Reference in New Issue
Block a user