Tigran 4 years ago
parent
commit
596c369c78
1 changed files with 2 additions and 1 deletions
  1. 2 1
      MafiaTelegramBot/Game/GameRooms/GameRoom.GameProcess.cs

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

@@ -189,7 +189,8 @@ namespace MafiaTelegramBot.Game.GameRooms
                     .Select(item => new {id = item.Key, count = item.Count()})
                     .ToList();
                 var hookerBlock = Players.Values.Any(p => p.CurrentRole.MafiaTargetId == -2);
-                if (votes.Count == 0 && !hookerBlock) mafiaNotAgree = strings.mafia_not_kill_message;
+                if (hookerBlock) { }
+                else if (votes.Count == 0) mafiaNotAgree = strings.mafia_not_kill_message;
                 else {
                     var max = votes.Max(item => item.count);
                     var maxObjects = votes.Where(item => item.count == max).ToList();