|
@@ -199,8 +199,8 @@ namespace MafiaTelegramBot.Game.GameRooms
|
|
foreach (var (role, players) in PlayersRole)
|
|
foreach (var (role, players) in PlayersRole)
|
|
{
|
|
{
|
|
if (role is Roles.Mafia)
|
|
if (role is Roles.Mafia)
|
|
- foreach (var mafia in players) await mafia.CurrentRole.ApplyNightActionResult();
|
|
|
|
- else if (players.Count == 1) await players[0].CurrentRole.ApplyNightActionResult();
|
|
|
|
|
|
+ foreach (var mafia in players.Where(p=>p.IsAlive)) await mafia.CurrentRole.ApplyNightActionResult();
|
|
|
|
+ else if (players.Count == 1 && players[0].IsAlive) await players[0].CurrentRole.ApplyNightActionResult();
|
|
}
|
|
}
|
|
var afterKill = Players.Values.ToDictionary(p=>p.Id,p=>p.IsAlive);
|
|
var afterKill = Players.Values.ToDictionary(p=>p.Id,p=>p.IsAlive);
|
|
var message = strings.city_wakes_up;
|
|
var message = strings.city_wakes_up;
|