Throwing event improvements (#10055)

This commit is contained in:
Rane
2022-07-27 19:28:23 -04:00
committed by GitHub
parent 9020ec6045
commit 38a8a22e5a
4 changed files with 39 additions and 8 deletions

View File

@@ -97,9 +97,9 @@ namespace Content.Shared.ActionBlocker
return !ev.Cancelled;
}
public bool CanThrow(EntityUid user)
public bool CanThrow(EntityUid user, EntityUid itemUid)
{
var ev = new ThrowAttemptEvent(user);
var ev = new ThrowAttemptEvent(user, itemUid);
RaiseLocalEvent(user, ev, true);
return !ev.Cancelled;