NonSpreaderZombieComponent prevents infection of crit mobs (#40857)

prevent the most critical bug in the history of station space 14
This commit is contained in:
GitHubUser53123
2025-10-13 05:13:30 +04:00
committed by GitHub
parent 35c783ecb1
commit 4aab1319ad

View 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); ZombifyEntity(entity);
args.BonusDamage = -args.BaseDamage; args.BonusDamage = -args.BaseDamage;