]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
NonSpreaderZombieComponent prevents infection of crit mobs (#40857)
authorGitHubUser53123 <110841413+GitHubUser53123@users.noreply.github.com>
Mon, 13 Oct 2025 01:13:30 +0000 (05:13 +0400)
committerGitHub <noreply@github.com>
Mon, 13 Oct 2025 01:13:30 +0000 (01:13 +0000)
prevent the most critical bug in the history of station space 14

Content.Server/Zombies/ZombieSystem.cs

index 5107a87c2a06890254dcb0cc7d012e4207ca6148..c182d53f44c37f4b12eda11997734cdf041b6f04 100644 (file)
@@ -264,7 +264,7 @@ namespace Content.Server.Zombies
                     }
                 }
 
-                if (_mobState.IsIncapacitated(entity, mobState) && !HasComp<ZombieComponent>(entity) && !HasComp<ZombieImmuneComponent>(entity))
+                if (_mobState.IsIncapacitated(entity, mobState) && !HasComp<ZombieComponent>(entity) && !HasComp<ZombieImmuneComponent>(entity) && !HasComp<NonSpreaderZombieComponent>(args.User))
                 {
                     ZombifyEntity(entity);
                     args.BonusDamage = -args.BaseDamage;