diff --git a/Content.Server/Psionics/Abilities/PsionicAbilitiesSystem.cs b/Content.Server/Psionics/Abilities/PsionicAbilitiesSystem.cs index 1be51893f9..d65186309d 100644 --- a/Content.Server/Psionics/Abilities/PsionicAbilitiesSystem.cs +++ b/Content.Server/Psionics/Abilities/PsionicAbilitiesSystem.cs @@ -7,6 +7,7 @@ using Robust.Shared.Random; using Robust.Shared.Prototypes; using Content.Shared.Popups; +using Robust.Shared.Serialization.Manager; namespace Content.Server.Psionics.Abilities { @@ -19,6 +20,7 @@ public sealed class PsionicAbilitiesSystem : EntitySystem [Dependency] private readonly GlimmerSystem _glimmerSystem = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly SharedPopupSystem _popups = default!; + [Dependency] private readonly ISerializationManager _serialization = default!; public override void Initialize() { @@ -50,7 +52,7 @@ public void AddRandomPsionicPower(EntityUid uid) return; } - var newPool = pool; + var newPool = _serialization.CreateCopy(pool, null, false, true); foreach (var component in pool.Weights.Keys) { var checkedComponent = _componentFactory.GetComponent(component);