diff --git a/Content.Server/DeltaV/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactMetapsionicTriggerSystem.cs b/Content.Server/DeltaV/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactMetapsionicTriggerSystem.cs index 8d9a216d658..37143aacd1e 100644 --- a/Content.Server/DeltaV/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactMetapsionicTriggerSystem.cs +++ b/Content.Server/DeltaV/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactMetapsionicTriggerSystem.cs @@ -1,5 +1,6 @@ using Content.Server.DeltaV.Xenoarchaeology.XenoArtifacts.Triggers.Components; -using Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Systems; +using Content.Server.Nyanotrasen.StationEvents.Events; +using Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Systems; using Content.Shared.Abilities.Psionics; namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Systems; @@ -13,10 +14,21 @@ public override void Initialize() base.Initialize(); SubscribeLocalEvent(OnPowerDetected); + + SubscribeLocalEvent(OnGlimmerEventEnded); } private void OnPowerDetected(Entity ent, ref PsionicPowerDetectedEvent args) { _artifact.TryActivateArtifact(ent); } + + private void OnGlimmerEventEnded(GlimmerEventEndedEvent args) + { + var query = EntityQueryEnumerator(); + while (query.MoveNext(out var uid, out _)) + { + _artifact.TryActivateArtifact(uid); + } + } }