Files
crystall-punk-14/Content.Shared/_CP14/MagicSpell/Spells/CP14SpellAddComponent.cs

18 lines
441 B
C#
Raw Permalink Normal View History

using Robust.Shared.Prototypes;
namespace Content.Shared._CP14.MagicSpell.Spells;
public sealed partial class CP14SpellAddComponent : CP14SpellEffect
{
[DataField]
public ComponentRegistry Components = new();
public override void Effect(EntityManager entManager, CP14SpellEffectBaseArgs args)
{
if (args.Target is null)
return;
entManager.AddComponents(args.Target.Value, Components);
}
}