From: neomoth Date: Fri, 16 Jan 2026 08:25:15 +0000 (-0500) Subject: Fix Zombie Resistance Probability (#42451) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2dca0785d7c21cd63117c915723ca339a8c29884;p=space-station-14.git Fix Zombie Resistance Probability (#42451) free merge --- diff --git a/Content.Server/Zombies/ZombieSystem.cs b/Content.Server/Zombies/ZombieSystem.cs index b840e7203e..542c065e4b 100644 --- a/Content.Server/Zombies/ZombieSystem.cs +++ b/Content.Server/Zombies/ZombieSystem.cs @@ -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(uid) || cannotSpread || _random.Prob(GetZombieInfectionChance(uid, entity.Comp))) + if (HasComp(uid) || cannotSpread || !_random.Prob(GetZombieInfectionChance(uid, entity.Comp))) continue; EnsureComp(uid);