|
@@ -34,13 +34,7 @@ namespace MafiaTelegramBot.Game.GameRoles
|
|
|
var target = Room.Players[NightTargetId];
|
|
|
target.CanBeHealed = false;
|
|
|
NightTargetId = -1;
|
|
|
- if (!target.IsAlive)
|
|
|
- {
|
|
|
- target.IsAlive = true;
|
|
|
- if(Player.Id == target.Id) await Bot.SendWithMarkdown2(Player.ChatId, strings.you_save_yourself);
|
|
|
- else await Bot.SendWithMarkdown2(Player.ChatId, $"{strings.you_save_player} {target.NickName}");
|
|
|
- await Bot.SendWithMarkdown2(target.ChatId, strings.doctor_save_you);
|
|
|
- }
|
|
|
+ if (!target.IsAlive) target.IsAlive = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -49,8 +43,7 @@ namespace MafiaTelegramBot.Game.GameRoles
|
|
|
NightTargetId = userId;
|
|
|
var target = Room.Players[userId];
|
|
|
if(userId == Player.Id) await Bot.SendWithMarkdown2(target.ChatId, strings.you_heal_yourself);
|
|
|
- else await Bot.SendWithMarkdown2(target.ChatId, strings.doctor_heals_you);
|
|
|
- await Bot.EditMessageAsync(Player.ChatId, MessageId, $"{strings.you_choose_target} {Room.Players[userId].NickName}");
|
|
|
+ else await Bot.EditMessageAsync(Player.ChatId, MessageId, $"{strings.you_choose_target} {Room.Players[userId].NickName}");
|
|
|
}
|
|
|
|
|
|
public DoctorRole(GameRoom room, Player player) : base(room, player) { }
|