2 Commits 068d49c3a4 ... 785c256a0f

Auteur SHA1 Message Date
  zelpold 785c256a0f Merge branch 'develop' of https://gogs.veloe.link/Veloe/MafiaTelegramBot into develop il y a 4 ans
  zelpold 14ffc9930b Bodyguard Role fix il y a 4 ans
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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;