]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix ambuzol zombie damage (#21432)
authorthemias <89101928+themias@users.noreply.github.com>
Sat, 4 Nov 2023 17:57:21 +0000 (13:57 -0400)
committerGitHub <noreply@github.com>
Sat, 4 Nov 2023 17:57:21 +0000 (13:57 -0400)
Content.Server/Zombies/ZombieSystem.cs

index 51cbf34d99c9727cda8a73f4a5591248c2d595d8..3f971b970f164098f93c3e3685ab3482a2dde1e8 100644 (file)
@@ -226,7 +226,7 @@ namespace Content.Server.Zombies
                     }
                 }
 
-                if (_mobState.IsIncapacitated(entity, mobState) && !HasComp<ZombieComponent>(entity))
+                if (_mobState.IsIncapacitated(entity, mobState) && !HasComp<ZombieComponent>(entity) && !HasComp<ZombieImmuneComponent>(entity))
                 {
                     ZombifyEntity(entity);
                     args.BonusDamage = -args.BaseDamage;