|
@@ -14,7 +14,7 @@ namespace MafiaTelegramBot.Game.GameRoles
|
|
|
public override async Task NightAction()
|
|
|
{
|
|
|
var targets = Room.Players.Values.Where(p => p.IsAlive && p.Id != Player.Id && p.CanBeBlockedNight).ToList();
|
|
|
- Room.Players[NightTargetId].CanBeBlockedNight = true;
|
|
|
+ if (NightTargetId != -1) Room.Players[NightTargetId].CanBeBlockedNight = true;
|
|
|
NightTargetId = -1;
|
|
|
var message = await Bot.SendWithMarkdown2(Player.ChatId, strings.choose_player_to_block_night,
|
|
|
Keyboard.NightChooseTargetKeyboard(targets, Player.Id));
|