Fix spear wielding (#18658)

Bottom text
This commit is contained in:
metalgearsloth
2023-08-05 04:37:16 +10:00
committed by GitHub
parent 1224ddb279
commit dfbd88507a

View File

@@ -40,6 +40,11 @@ namespace Content.Shared.Projectiles
if (component.RemovalTime == null)
return;
if (args.Handled || !TryComp<PhysicsComponent>(uid, out var physics) || physics.BodyType != BodyType.Static)
return;
args.Handled = true;
_doAfter.TryStartDoAfter(new DoAfterArgs(args.User, component.RemovalTime.Value,
new RemoveEmbeddedProjectileEvent(), eventTarget: uid, target: uid)
{