2 Commits 068d49c3a4 ... 785c256a0f

Author SHA1 Message Date
  zelpold 785c256a0f Merge branch 'develop' of https://gogs.veloe.link/Veloe/MafiaTelegramBot into develop 4 years ago
  zelpold 14ffc9930b Bodyguard Role fix 4 years ago
1 changed files with 2 additions and 1 deletions
  1. 2 1
      MafiaTelegramBot/Game/GameRoles/BodyguardRole.cs

+ 2 - 1
MafiaTelegramBot/Game/GameRoles/BodyguardRole.cs

@@ -19,8 +19,9 @@ namespace MafiaTelegramBot.Game.GameRoles
 
         public override async Task NightAction()
         {
+            
+            NightTargetList = Room.Players.Values.Where(p => p.IsAlive && p.Id != Player.Id && p.Id != NightTargetId).ToList();
             NightTargetId = -1;
-            NightTargetList = Room.Players.Values.Where(p => p.IsAlive && p.Id != Player.Id).ToList();
             var message = await Bot.SendWithMarkdown2(Player.ChatId, strings.choose_target_to_protect, 
                 Keyboard.NightChooseTargetKeyboard(NightTargetList, Player.Id));
             MessageId = message.MessageId;