Fix dead vengeful ghost always winning with village even if they are wolfteam, and clean up a weird-looking conditional
This commit is contained in:
parent
8df527e9d7
commit
3f990a22ec
@ -1575,8 +1575,7 @@ def stop_game(cli, winner = ""):
|
||||
won = True
|
||||
elif var.DEFAULT_ROLE == "cultist" and winner == "wolves":
|
||||
won = True
|
||||
else:
|
||||
if winner == "villagers":
|
||||
elif winner == "villagers":
|
||||
won = True
|
||||
|
||||
survived = var.list_players()
|
||||
@ -1625,6 +1624,9 @@ def stop_game(cli, winner = ""):
|
||||
elif splr in var.VENGEFUL_GHOSTS and var.VENGEFUL_GHOSTS[splr] == "wolves" and winner == "villagers":
|
||||
won = True
|
||||
iwon = True
|
||||
else:
|
||||
won = False
|
||||
iwon = False
|
||||
elif rol == "lycan" or splr in var.LYCANS:
|
||||
if splr in var.LYCANS and winner == "wolves":
|
||||
won = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user