Fix fool winning
If a fool is also a lover and they are lynched, they don't win (but their lover might depending on bot settings). Fixes #162
This commit is contained in:
parent
2cf278f9b1
commit
07fdf64aae
@ -2355,6 +2355,8 @@ def stop_game(cli, winner = "", abort = False):
|
|||||||
# You get NOTHING! You LOSE! Good DAY, sir!
|
# You get NOTHING! You LOSE! Good DAY, sir!
|
||||||
won = False
|
won = False
|
||||||
iwon = False
|
iwon = False
|
||||||
|
elif rol == "fool" and "@" + splr == winner:
|
||||||
|
iwon = True
|
||||||
elif splr in var.LOVERS and splr in survived and len([x for x in var.LOVERS[splr] if x in survived]) > 0:
|
elif splr in var.LOVERS and splr in survived and len([x for x in var.LOVERS[splr] if x in survived]) > 0:
|
||||||
for lvr in var.LOVERS[splr]:
|
for lvr in var.LOVERS[splr]:
|
||||||
if lvr not in survived:
|
if lvr not in survived:
|
||||||
@ -2377,8 +2379,6 @@ def stop_game(cli, winner = "", abort = False):
|
|||||||
elif winner == "pipers" and lvrrol == "piper":
|
elif winner == "pipers" and lvrrol == "piper":
|
||||||
iwon = True
|
iwon = True
|
||||||
break
|
break
|
||||||
elif rol == "fool" and "@" + splr == winner:
|
|
||||||
iwon = True
|
|
||||||
elif rol == "monster" and splr in survived and winner == "monsters":
|
elif rol == "monster" and splr in survived and winner == "monsters":
|
||||||
iwon = True
|
iwon = True
|
||||||
elif rol == "piper" and splr in survived and winner == "pipers":
|
elif rol == "piper" and splr in survived and winner == "pipers":
|
||||||
|
Loading…
Reference in New Issue
Block a user