|
@@ -55,7 +55,7 @@ namespace MafiaTelegramBot.Game.GameRoles
|
|
|
|
|
|
public override async Task SetNightTarget(long userId)
|
|
|
{
|
|
|
- if (!Room.Players.ContainsKey(NightTargetId)) await Room.PlayersCh.SendTo(Player.Id, strings.this_player_left_from_game);
|
|
|
+ if (!Room.Players.ContainsKey(userId)) await Room.PlayersCh.SendTo(Player.Id, strings.this_player_left_from_game);
|
|
|
else
|
|
|
{
|
|
|
NightTargetId = userId;
|
|
@@ -68,7 +68,7 @@ namespace MafiaTelegramBot.Game.GameRoles
|
|
|
if(userId == -1) await Room.PlayersCh.EditTo(Player.Id, MafiaMessageId, strings.you_skip_vote);
|
|
|
else
|
|
|
{
|
|
|
- if (!Room.Players.ContainsKey(MafiaTargetId)) await Room.PlayersCh.SendTo(Player.Id, strings.this_player_left_from_game);
|
|
|
+ if (!Room.Players.ContainsKey(userId)) await Room.PlayersCh.SendTo(Player.Id, strings.this_player_left_from_game);
|
|
|
else
|
|
|
{
|
|
|
MafiaTargetId = userId;
|