From 0977b742948218534e40394c5438f04ec3156127 Mon Sep 17 00:00:00 2001 From: Ethan_k Date: Thu, 10 Apr 2025 18:12:13 -0700 Subject: [PATCH] Zombies can no longer Suicide take 2 (#36453) * I did it right * Update Content.Server/Zombies/ZombieSystem.Transform.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- Content.Server/Zombies/ZombieSystem.Transform.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Zombies/ZombieSystem.Transform.cs b/Content.Server/Zombies/ZombieSystem.Transform.cs index 155796481b..48954db4f1 100644 --- a/Content.Server/Zombies/ZombieSystem.Transform.cs +++ b/Content.Server/Zombies/ZombieSystem.Transform.cs @@ -63,7 +63,7 @@ public sealed partial class ZombieSystem [Dependency] private readonly NameModifierSystem _nameMod = default!; private static readonly ProtoId InvalidForGlobalSpawnSpellTag = "InvalidForGlobalSpawnSpell"; - + private static readonly ProtoId CannotSuicideTag = "CannotSuicide"; /// /// Handles an entity turning into a zombie when they die or go into crit /// @@ -294,5 +294,6 @@ public sealed partial class ZombieSystem //Need to prevent them from getting an item, they have no hands. // Also prevents them from becoming a Survivor. They're undead. _tag.AddTag(target, InvalidForGlobalSpawnSpellTag); + _tag.AddTag(target, CannotSuicideTag); } } -- 2.51.2