]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix Zombie Resistance Probability (#42451)
authorneomoth <admin@neomoth.dev>
Fri, 16 Jan 2026 08:25:15 +0000 (03:25 -0500)
committerGitHub <noreply@github.com>
Fri, 16 Jan 2026 08:25:15 +0000 (08:25 +0000)
free merge

Content.Server/Zombies/ZombieSystem.cs

index b840e7203e20f986103556cad1ecd3c37547f85f..542c065e4b21219cca3f6779db4469fa61fc8c49 100644 (file)
@@ -262,7 +262,7 @@ namespace Content.Server.Zombies
                     _damageable.TryChangeDamage(args.User, entity.Comp.HealingOnBite, true, false);
 
                     // If we cannot infect the living target, the zed will just heal itself.
-                    if (HasComp<ZombieImmuneComponent>(uid) || cannotSpread || _random.Prob(GetZombieInfectionChance(uid, entity.Comp)))
+                    if (HasComp<ZombieImmuneComponent>(uid) || cannotSpread || !_random.Prob(GetZombieInfectionChance(uid, entity.Comp)))
                         continue;
 
                     EnsureComp<PendingZombieComponent>(uid);