From cf86d51ed3b89bc30cc4eb4ddfee0fbf7c0e90c6 Mon Sep 17 00:00:00 2001 From: Patrique29 Date: Tue, 21 Apr 2026 16:31:14 +0200 Subject: [PATCH 1/3] fix alzheimer --- .../CustomRoles/CR/Human/Alzheimer.cs | 17 ++++++++++++++++- KruacentExiled/MainPlugin.cs | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs b/KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs index 734312f..55725ca 100644 --- a/KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs +++ b/KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs @@ -100,9 +100,24 @@ private void CreateSpawnHint(Player player) ISCPPreferences trueSCP = Spawn.GetSCP(Player.Get(randomscp)); + + + List allOtherRole; + + int numberscp = Player.Enumerable.Count(p => SCPTeam.IsSCP(p.ReferenceHub)); + if (numberscp == 0) return; + + if (numberscp <= 1) + { + allOtherRole = Spawn.allRoles.Where(s => s != trueSCP).ToList(); + } + else + { + allOtherRole = Spawn.allRoles.Where(s => s != trueSCP && !s.IsSupport).ToList(); + } KELog.Debug(trueSCP.SCPId); - List allOtherRole = Spawn.allRoles.Where(s => s != trueSCP).ToList(); + ISCPPreferences fakeSCP1 = allOtherRole.PullRandomItem(); KELog.Debug(fakeSCP1.SCPId); diff --git a/KruacentExiled/MainPlugin.cs b/KruacentExiled/MainPlugin.cs index 45a7507..6ee10c2 100644 --- a/KruacentExiled/MainPlugin.cs +++ b/KruacentExiled/MainPlugin.cs @@ -9,7 +9,7 @@ internal class MainPlugin : Plugin private KEPlugin[] plugins; public override string Author => "Patrique & OmerGS"; - public override Version Version { get; } = new Version(2, 0, 0); + public override Version Version { get; } = new Version(2, 0, 1); public static MainPlugin Instance { get; private set; } From 188f67f141720c7ce0bc8857a831af1954796d8b Mon Sep 17 00:00:00 2001 From: Patrique29 Date: Tue, 21 Apr 2026 16:35:50 +0200 Subject: [PATCH 2/3] inverted the if (skill issue) --- KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs b/KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs index 55725ca..11c4e71 100644 --- a/KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs +++ b/KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs @@ -109,11 +109,12 @@ private void CreateSpawnHint(Player player) if (numberscp <= 1) { - allOtherRole = Spawn.allRoles.Where(s => s != trueSCP).ToList(); + allOtherRole = Spawn.allRoles.Where(s => s != trueSCP && !s.IsSupport).ToList(); } else { - allOtherRole = Spawn.allRoles.Where(s => s != trueSCP && !s.IsSupport).ToList(); + allOtherRole = Spawn.allRoles.Where(s => s != trueSCP).ToList(); + } KELog.Debug(trueSCP.SCPId); From c430bb332050c0e4d2044c683d0d2a611cba54a0 Mon Sep 17 00:00:00 2001 From: Patrique29 Date: Tue, 21 Apr 2026 16:41:52 +0200 Subject: [PATCH 3/3] block nuke & decont --- .../Map/Others/BlackoutNDoor/Handlers/Handler.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/KruacentExiled/Map/Others/BlackoutNDoor/Handlers/Handler.cs b/KruacentExiled/Map/Others/BlackoutNDoor/Handlers/Handler.cs index 580cf3c..c93fee0 100644 --- a/KruacentExiled/Map/Others/BlackoutNDoor/Handlers/Handler.cs +++ b/KruacentExiled/Map/Others/BlackoutNDoor/Handlers/Handler.cs @@ -161,6 +161,21 @@ private void LaunchEvent() EventHandle.OnPreEvent(preEv); + if(preEv.IsAllowed) + { + if (Warhead.IsInProgress) + { + preEv.IsAllowed = false; + } + + + if (zone == ZoneType.LightContainment && Exiled.API.Features.Map.DecontaminationState == DecontaminationState.Countdown) + { + preEv.IsAllowed = false; + } + } + + if (preEv.IsAllowed && Zones.Contains(zone.GetZone())) {