|
@@ -437,7 +437,7 @@ namespace MafiaTelegramBot.Game.GameRooms
|
|
|
var yellowResult = await value[0].CurrentRole.IsWon();
|
|
|
if (yellowResult != "") additionalResult += "\n" + yellowResult;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (aliveMafia == 0)
|
|
|
{
|
|
|
await PlayersCh.Send(strings.villagers_won + additionalResult, exceptDied: false);
|
|
@@ -445,6 +445,12 @@ namespace MafiaTelegramBot.Game.GameRooms
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ if (aliveMafia == 1)
|
|
|
+ {
|
|
|
+ var player = Players.Values.FirstOrDefault(p => p.IsAlive && p.GetRole() is Roles.Don or Roles.Dame or Roles.Mafia) ??
|
|
|
+ PlayersRole[Roles.Werewolf][0];
|
|
|
+ player.LawyerRoleAchievementEvent();
|
|
|
+ }
|
|
|
await PlayersCh.Send(strings.mafia_won + additionalResult, exceptDied: false);
|
|
|
await PlayersCh.SendSticker(Stickers.Sticker["MafiaWins"]);
|
|
|
}
|