|
@@ -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;
|
|
|
}
|
|
|
}
|
|
|
|