mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Seperate EMAG into EMAG and Authentication Disruptor (#34337)
(cherry picked from commit 253a9fbdf1372f80dad65a80dcb8e5d169861804)
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Content.Shared.Pinpointer;
|
||||
public abstract class SharedPinpointerSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly ISharedAdminLogManager _adminLogger = default!;
|
||||
[Dependency] private readonly EmagSystem _emag = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -142,6 +143,15 @@ public abstract class SharedPinpointerSystem : EntitySystem
|
||||
return;
|
||||
// WD EDIT END
|
||||
|
||||
if (!_emag.CompareFlag(args.Type, EmagType.Interaction))
|
||||
return;
|
||||
|
||||
if (_emag.CheckFlag(uid, EmagType.Interaction))
|
||||
return;
|
||||
|
||||
if (component.CanRetarget)
|
||||
return;
|
||||
|
||||
args.Handled = true;
|
||||
component.CanRetarget = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user