From 70f4709c57584d87ee84bbc922b9fef803a0e29e Mon Sep 17 00:00:00 2001 From: Exp Date: Wed, 16 Sep 2020 15:23:45 +0200 Subject: [PATCH] Don't show the pull verb if the target is anchored (#2103) --- Content.Server/GlobalVerbs/PullingVerb.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Server/GlobalVerbs/PullingVerb.cs b/Content.Server/GlobalVerbs/PullingVerb.cs index 100fb6099b..4e9743c1a4 100644 --- a/Content.Server/GlobalVerbs/PullingVerb.cs +++ b/Content.Server/GlobalVerbs/PullingVerb.cs @@ -1,4 +1,4 @@ -using Content.Server.GameObjects.Components.GUI; +using Content.Server.GameObjects.Components.GUI; using Content.Server.GameObjects.Components.Movement; using Content.Shared.GameObjects.Components.Items; using Content.Shared.GameObjects.EntitySystems; @@ -38,7 +38,8 @@ namespace Content.Server.GlobalVerbs if (!user.HasComponent() || !user.TryGetComponent(out ICollidableComponent userCollidable) || - !target.TryGetComponent(out ICollidableComponent targetCollidable)) + !target.TryGetComponent(out ICollidableComponent targetCollidable) || + targetCollidable.Anchored) { return; }