Fix end of game crash if vengeful ghost idles

This commit is contained in:
skizzerz 2014-07-25 22:45:35 -05:00
parent 40fcfb3a6c
commit 060ea15bff

View File

@ -1116,12 +1116,12 @@ def stop_game(cli, winner = ""):
iwon = True
elif plr in var.ORIGINAL_ROLES["vengeful ghost"]:
if not winner.startswith("@") and winner != "monsters":
if plr in survived:
if splr in survived:
iwon = True
elif var.VENGEFUL_GHOSTS[splr] == "villagers" and winner == "wolves":
elif splr in var.VENGEFUL_GHOSTS and var.VENGEFUL_GHOSTS[splr] == "villagers" and winner == "wolves":
won = True
iwon = True
elif var.VENGEFUL_GHOSTS[splr] == "wolves" and winner == "villagers":
elif splr in var.VENGEFUL_GHOSTS and var.VENGEFUL_GHOSTS[splr] == "wolves" and winner == "villagers":
won = True
iwon = True
elif plr in var.ORIGINAL_ROLES["lycan"]: