From aab1f0aaf53c9861d39a51b2d08032b38c20937e Mon Sep 17 00:00:00 2001 From: "Vgr E.Barry" Date: Wed, 27 May 2015 20:45:52 -0400 Subject: [PATCH] Prevent pipers from winning if someone is wounded --- src/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 7c8f72c..2237af3 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -1938,7 +1938,7 @@ def chk_win(cli, end_game = True): if lpl < 1: message = "Game over! There are no players remaining." winner = "none" - elif lpipers and lpl - lpipers == len(var.CHARMED - set(var.ROLES["piper"])): + elif lpipers and len(var.list_players()) - lpipers == len(var.CHARMED - set(var.ROLES["piper"])): winner = "pipers" message = ("Game over! Everyone has fallen victim to the charms of the " + "piper{0}. The piper{0} lead{1} the villagers away from the village, " +