Forráskód Böngészése

Hooker die add mafia roles

Tigran 4 éve
szülő
commit
ccc98e353f
1 módosított fájl, 3 hozzáadás és 1 törlés
  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;