* attuning to items start * verbs attuning, forgot oldest attuning * Update CP14SharedMagicAttuningSystem.cs * some fixes * add deattuning * fix popups on owner * file restructurization * MORE FOLDER RENAMING GODD * magic via holding yea! * fix deattuning * vfx bugfixs * wearing magic items * Cure wounds spell * refactor spells * more redo * finish refactor
23 lines
603 B
C#
23 lines
603 B
C#
using Content.Shared.EntityEffects;
|
|
|
|
namespace Content.Shared._CP14.MagicSpell.Spells;
|
|
|
|
public sealed partial class CP14SpellApplyEntityEffect : CP14SpellEffect
|
|
{
|
|
[DataField(required: true, serverOnly: true)]
|
|
public List<EntityEffect> Effects = new();
|
|
|
|
public override void Effect(EntityManager entManager, CP14SpellEffectBaseArgs args)
|
|
{
|
|
if (args.Target is null)
|
|
return;
|
|
|
|
var targetEntity = args.Target.Value;
|
|
|
|
foreach (var effect in Effects)
|
|
{
|
|
effect.Effect(new EntityEffectBaseArgs(targetEntity, entManager));
|
|
}
|
|
}
|
|
}
|