using Content.Server.Silicons.Laws;
using Content.Shared.EntityEffects;
using Content.Shared.EntityEffects.Effects.Smite;
using Content.Shared.Silicons.Laws.Components;
namespace Content.Server.EntityEffects.Effects.Smite;
///
/// Binds this entity to its law provider and notifies it of its laws.
///
///
public sealed partial class SiliconLawBoundEntityEffectSystem : EntityEffectSystem
{
[Dependency] private SiliconLawSystem _siliconLaws = default!;
protected override void Effect(Entity entity, ref EntityEffectEvent args)
{
EnsureComp(entity);
_siliconLaws.GetLaws(entity.Owner);
_siliconLaws.NotifyLawsChanged(entity);
}
}