Can't break other people's drags on cuffed people (#8868)
* works on my machine * speedrun
This commit is contained in:
@@ -55,9 +55,11 @@ namespace Content.Shared.Pulling
|
||||
}
|
||||
}
|
||||
|
||||
var getPulled = new BeingPulledAttemptEvent(puller, pulled);
|
||||
RaiseLocalEvent(pulled, getPulled);
|
||||
var startPull = new StartPullAttemptEvent(puller, pulled);
|
||||
RaiseLocalEvent(puller, startPull);
|
||||
return !startPull.Cancelled;
|
||||
return (!startPull.Cancelled && !getPulled.Cancelled);
|
||||
}
|
||||
|
||||
public bool TogglePull(EntityUid puller, SharedPullableComponent pullable)
|
||||
|
||||
Reference in New Issue
Block a user