Browse Source

Hooker die add mafia roles

Tigran 4 năm trước cách đây
mục cha
commit
ccc98e353f
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      MafiaTelegramBot/Game/GameRoles/HookerRole.cs

+ 3 - 1
MafiaTelegramBot/Game/GameRoles/HookerRole.cs

@@ -55,7 +55,9 @@ namespace MafiaTelegramBot.Game.GameRoles
             if (!Room.IsDay)
             {
                 var target = Room.Players[NightTargetId];
-                if (target.CurrentRole.RoleKey != Roles.Mafia) target.IsAlive = false;
+                if (target.GetRole() == Roles.Mafia || target.GetRole() != Roles.Dame || target.GetRole() != Roles.Don) { }
+                else if (target.GetRole() == Roles.Werewolf && ((WerewolfRole) target.CurrentRole).IsMafia) { }
+                else target.IsAlive = false;
             }
             Player.IsAlive = false;
             return Task.CompletedTask;