Tigran 4 lat temu
rodzic
commit
b81dc3d166

+ 1 - 1
MafiaTelegramBot/Game/GameRooms/GameRoom.GameProcess.cs

@@ -153,7 +153,7 @@ namespace MafiaTelegramBot.Game.GameRooms
                     if (role is Roles.Mafia)
                     {
                         foreach (var mafia in players) mafia.IsSpeaker = false;
-                        var votes = players
+                        var votes = players.Where(p=> p.IsAlive)
                             .GroupBy(p => p.CurrentRole.GetNightTarget())
                             .Select(item => new {id = item.Key, count = item.Count()})
                             .ToList();