-using Content.Shared.Bed.Sleep;
using Content.Shared.Body.Events;
-using Content.Shared.DragDrop;
using Content.Shared.Emoting;
using Content.Shared.Hands;
using Content.Shared.Interaction;
using Content.Shared.Interaction.Events;
using Content.Shared.Item;
-using Content.Shared.Mobs;
-using Content.Shared.Mobs.Components;
using Content.Shared.Movement.Components;
using Content.Shared.Movement.Events;
using Content.Shared.Speech;
if (target == null)
return true;
- var tev = new GettingAttackedAttemptEvent();
+ var tev = new GettingAttackedAttemptEvent(uid, weapon, disarm);
RaiseLocalEvent(target.Value, ref tev);
return !tev.Cancelled;
}
/// Raised directed on the target entity when being attacked.
/// </summary>
[ByRefEvent]
-public record struct GettingAttackedAttemptEvent(bool Cancelled);
+public record struct GettingAttackedAttemptEvent(EntityUid Attacker, EntityUid? Weapon, bool Disarm, bool Cancelled = false);