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