Fix win checking to account for piper win

This commit is contained in:
Vgr E.Barry 2015-05-28 16:09:54 -04:00
parent 7d652b457d
commit d15fd90b1e

View File

@ -1811,10 +1811,10 @@ def stop_game(cli, winner = "", abort = False):
iwon = True iwon = True
elif rol == "crazed shaman" or rol == "clone": elif rol == "crazed shaman" or rol == "clone":
# For clone, this means they ended game while being clone and not some other role # For clone, this means they ended game while being clone and not some other role
if splr in survived and not winner.startswith("@") and winner != "monsters": if splr in survived and not winner.startswith("@") and winner not in ("monsters", "pipers"):
iwon = True iwon = True
elif rol == "vengeful ghost": elif rol == "vengeful ghost":
if not winner.startswith("@") and winner != "monsters": if not winner.startswith("@") and winner not in ("monsters", "pipers"):
if won and splr in survived: if won and splr in survived:
iwon = True iwon = True
elif splr in var.VENGEFUL_GHOSTS and var.VENGEFUL_GHOSTS[splr] == "villagers" and winner == "wolves": elif splr in var.VENGEFUL_GHOSTS and var.VENGEFUL_GHOSTS[splr] == "villagers" and winner == "wolves":