No pointing at pointing arrows (#1527)

This commit is contained in:
Exp
2020-07-29 12:36:31 +02:00
committed by GitHub
parent 835940c4be
commit 01d7a92a2b

View File

@@ -92,6 +92,12 @@ namespace Content.Server.GameObjects.EntitySystems
return false;
}
if (EntityManager.TryGetEntity(uid, out var entity) && entity.HasComponent<PointingArrowComponent>())
{
// this is a pointing arrow. no pointing here...
return false;
}
if (!InRange(coords, player.Transform.GridPosition))
{
player.PopupMessage(player, Loc.GetString("You can't reach there!"));