Use can attach check on shot attempt (#24396)
refactor(SharedGunSystem): use can attach check on shot attempt
This commit is contained in:
@@ -162,14 +162,12 @@ namespace Content.Shared.ActionBlocker
|
||||
if (ev.Cancelled)
|
||||
return false;
|
||||
|
||||
if (target != null)
|
||||
{
|
||||
var tev = new GettingAttackedAttemptEvent();
|
||||
RaiseLocalEvent(target.Value, ref tev);
|
||||
return !tev.Cancelled;
|
||||
}
|
||||
if (target == null)
|
||||
return true;
|
||||
|
||||
return true;
|
||||
var tev = new GettingAttackedAttemptEvent();
|
||||
RaiseLocalEvent(target.Value, ref tev);
|
||||
return !tev.Cancelled;
|
||||
}
|
||||
|
||||
public bool CanChangeDirection(EntityUid uid)
|
||||
|
||||
Reference in New Issue
Block a user