소스 검색

Bodyguard Role fix

zelpold 4 년 전
부모
커밋
14ffc9930b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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;