using Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
using Content.Shared.Examine;
+using Content.Shared.Ghost;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Systems;
private void OnExamine(EntityUid uid, ArtifactExamineTriggerComponent component, ExaminedEvent args)
{
+ // Prevent ghosts from activating this trigger unless they have CanGhostInteract
+ if (TryComp<GhostComponent>(args.Examiner, out var ghost) && !ghost.CanGhostInteract)
+ return;
+
_artifact.TryActivateArtifact(uid);
}
}