]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix reptilians pulling after being zombiefied (#23066)
authorŁukasz Mędrek <lukasz@lukaszm.xyz>
Mon, 1 Jan 2024 23:31:36 +0000 (23:31 +0000)
committerGitHub <noreply@github.com>
Mon, 1 Jan 2024 23:31:36 +0000 (18:31 -0500)
* Fix reptilians pulling after being zombiefied

Now being zombefied removes ability to pull objects, regardless of if
the entity could pull without using their hands.

Fix #23043

* Apply changes from review

Content.Server/Zombies/ZombieSystem.Transform.cs

index cac516407ba1f6765628862112b8440c247fae9b..40946b6d7f0dbde045beca1d744aa1177627b6db 100644 (file)
@@ -29,6 +29,7 @@ using Content.Shared.Nutrition.AnimalHusbandry;
 using Content.Shared.Nutrition.Components;
 using Content.Shared.Popups;
 using Content.Shared.Roles;
+using Content.Shared.Pulling.Components;
 using Content.Shared.Tools.Components;
 using Content.Shared.Weapons.Melee;
 using Content.Shared.Zombies;
@@ -262,6 +263,8 @@ namespace Content.Server.Zombies
                 RemComp(target, handsComp);
             }
 
+            RemComp<SharedPullerComponent>(target);
+
             // No longer waiting to become a zombie:
             // Requires deferral because this is (probably) the event which called ZombifyEntity in the first place.
             RemCompDeferred<PendingZombieComponent>(target);