fix succubi winning when all players die ... even if there were no succubi

This commit is contained in:
jacob1 2017-08-20 18:53:23 -04:00
parent 4dc86adc75
commit a0055453fe

View File

@ -152,7 +152,7 @@ def on_player_win(evt, var, user, role, winner, survived):
def on_chk_win(evt, cli, var, rolemap, mainroles, lpl, lwolves, lrealwolves):
lsuccubi = len(rolemap.get("succubus", ()))
lentranced = len(ENTRANCED - var.DEAD)
if var.PHASE == "day" and lpl - lsuccubi == lentranced:
if lsuccubi and var.PHASE == "day" and lpl - lsuccubi == lentranced:
evt.data["winner"] = "succubi"
evt.data["message"] = messages["succubus_win"].format(plural("succubus", lsuccubi), plural("has", lsuccubi), plural("master's", lsuccubi))