Fix vengeful ghost winning with fool/monsters

This commit is contained in:
skizzerz 2014-07-20 19:52:36 -05:00
parent b28d67a877
commit 6cb320d1e3

View File

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