mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
Stable animation, pause when window not focused
This commit is contained in:
@@ -172,7 +172,7 @@ io.on('connection', function(socket) {
|
||||
game.killedPlayer = player.name;
|
||||
game.lastKilled = player.id;
|
||||
game.killedRole = player.card.role;
|
||||
game.message = player.name + ", a " + player.card.role + " was killed!"
|
||||
game.message = player.name + ", a " + player.card.role + ", was killed!"
|
||||
const winCheck = teamWon(game);
|
||||
if (winCheck === "wolf") {
|
||||
game.winningTeam = "wolf";
|
||||
|
||||
Reference in New Issue
Block a user