Fix reptilians pulling after being zombiefied (#23066)
* 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
This commit is contained in:
@@ -29,6 +29,7 @@ using Content.Shared.Nutrition.AnimalHusbandry;
|
|||||||
using Content.Shared.Nutrition.Components;
|
using Content.Shared.Nutrition.Components;
|
||||||
using Content.Shared.Popups;
|
using Content.Shared.Popups;
|
||||||
using Content.Shared.Roles;
|
using Content.Shared.Roles;
|
||||||
|
using Content.Shared.Pulling.Components;
|
||||||
using Content.Shared.Tools.Components;
|
using Content.Shared.Tools.Components;
|
||||||
using Content.Shared.Weapons.Melee;
|
using Content.Shared.Weapons.Melee;
|
||||||
using Content.Shared.Zombies;
|
using Content.Shared.Zombies;
|
||||||
@@ -262,6 +263,8 @@ namespace Content.Server.Zombies
|
|||||||
RemComp(target, handsComp);
|
RemComp(target, handsComp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RemComp<SharedPullerComponent>(target);
|
||||||
|
|
||||||
// No longer waiting to become a zombie:
|
// No longer waiting to become a zombie:
|
||||||
// Requires deferral because this is (probably) the event which called ZombifyEntity in the first place.
|
// Requires deferral because this is (probably) the event which called ZombifyEntity in the first place.
|
||||||
RemCompDeferred<PendingZombieComponent>(target);
|
RemCompDeferred<PendingZombieComponent>(target);
|
||||||
|
|||||||
Reference in New Issue
Block a user