2 Commits 068d49c3a4 ... 785c256a0f

Tác giả SHA1 Thông báo Ngày
  zelpold 785c256a0f Merge branch 'develop' of https://gogs.veloe.link/Veloe/MafiaTelegramBot into develop 4 năm trước cách đây
  zelpold 14ffc9930b Bodyguard Role fix 4 năm trước cách đây
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;