Make combat check CanInteract (#7046)
This commit is contained in:
@@ -54,7 +54,6 @@ namespace Content.Shared.Stunnable
|
||||
SubscribeLocalEvent<StunnedComponent, ThrowAttemptEvent>(OnThrowAttempt);
|
||||
SubscribeLocalEvent<StunnedComponent, DropAttemptEvent>(OnDropAttempt);
|
||||
SubscribeLocalEvent<StunnedComponent, PickupAttemptEvent>(OnPickupAttempt);
|
||||
SubscribeLocalEvent<StunnedComponent, AttackAttemptEvent>(OnAttackAttempt);
|
||||
SubscribeLocalEvent<StunnedComponent, IsEquippingAttemptEvent>(OnEquipAttempt);
|
||||
SubscribeLocalEvent<StunnedComponent, IsUnequippingAttemptEvent>(OnUnequipAttempt);
|
||||
}
|
||||
@@ -236,11 +235,6 @@ namespace Content.Shared.Stunnable
|
||||
args.Cancel();
|
||||
}
|
||||
|
||||
private void OnAttackAttempt(EntityUid uid, StunnedComponent stunned, AttackAttemptEvent args)
|
||||
{
|
||||
args.Cancel();
|
||||
}
|
||||
|
||||
private void OnEquipAttempt(EntityUid uid, StunnedComponent stunned, IsEquippingAttemptEvent args)
|
||||
{
|
||||
// is this a self-equip, or are they being stripped?
|
||||
|
||||
Reference in New Issue
Block a user