Browse Source

Bodyguard Role fix

zelpold 4 years ago
parent
commit
14ffc9930b
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;