Don't show the pull verb if the target is anchored (#2103)

This commit is contained in:
Exp
2020-09-16 15:23:45 +02:00
committed by GitHub
parent fe354c1aee
commit 70f4709c57

View File

@@ -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<ISharedHandsComponent>() ||
!user.TryGetComponent(out ICollidableComponent userCollidable) ||
!target.TryGetComponent(out ICollidableComponent targetCollidable))
!target.TryGetComponent(out ICollidableComponent targetCollidable) ||
targetCollidable.Anchored)
{
return;
}