GreyWolfDev / Werewolf

Werewolf for Telegram
http://www.tgwerewolf.com
GNU General Public License v3.0
622 stars 385 forks source link

Fleeing or Smiting during running game can end the game abruptly #465

Open GJDZ02 opened 5 years ago

GJDZ02 commented 5 years ago

It was a Chaos Match, there were 7 players still alive out of 8... During the day, the Troublemaker activated his ability and 5 of us voted for one of the players... He decided to /flee in order to accelerate things as our group tends to do if there's an overwhelming majority in votes against you... He was the Arsonist.

After that, the game didn't go into the next lynch, it didn't display any end-game message... The game just didn't continue... We waited a bit before /ping and got an immediate response from the bot... Someone issued the /startgame command and it started another match like nothing...

It was a Chaos Match so I am not sure if there was only an Arsonist, but what we believe happened is that the game ended there with the Villagers winning but because the game was meant to continue with the second Lynch, it didn't send the final messages to close the match, it just ended.

OlgabrezelPrivate commented 5 years ago

This bug is known, and it existed before the double lynch. Specifically, it always happens when the game ends by fleeing / smiting and not at day phase. So if the last bad role is smitten / flees during lynch time or night time, or if someone is smitten during those phases and then the wolves outnumber the villagers, or similar, the game will end abruptly like this. I've never understood why this happens but will soon check the code for that problem again and hopefully solve it :/

Rule of thumb: Only smite players during day time and only flee from a running game during day time (or better not at all)