Tigran пре 4 година
родитељ
комит
17993942ce
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      MafiaTelegramBot/Game/GameRoles/NecromancerRole.cs

+ 2 - 2
MafiaTelegramBot/Game/GameRoles/NecromancerRole.cs

@@ -26,11 +26,11 @@ namespace MafiaTelegramBot.Game.GameRoles
         public override async Task ApplyNightActionResult()
         {
             if(NightTargetId == -1) await Room.PlayersCh.EditTo(Player.Id, MafiaMessageId, strings.you_skip_vote);
-            else if (_actionApplied || NightTargetId == -2 || !Room.Players.ContainsKey(NightTargetId)) { }
+            else if (_actionApplied || NightTargetId == -2) { }
             else
             {
                 _actionApplied = true;
-                Room.Players[NightTargetId].IsAlive = true;
+                if(Room.Players.ContainsKey(NightTargetId)) Room.Players[NightTargetId].IsAlive = true;
             }
         }