Open bugmen0t opened 3 years ago
The point of the absent status is that those people are counted as not in the village for all win condition checking. It should probably be >=
instead of ==
though so it ended earlier. Also lguardians
should exclude absent GAs which it currently isn't doing.
Recent guardian game [~2010-12-20 23:00 UTC] had this rather surprising interaction: The day started with 3 wolves alive, 2 GA, and 1 vil alive. wolf gunner shoots and wounds one of GA, and gets lynched afterward. On their lynch, guardian_lose_with_guards gets triggered. Triggering wolf win condition on wolf lynch seems counterintuitive, so this patch seeks to alleviate that [lpl does not include absent players during the day, so that's why I chose this approach].
An alternate fix would be switching
lwolves == lguardians
tolwolves >= lguardians
so wolves would get their win when GA was shot, not sure what was an intention here.