Skip to content

Commit

Permalink
WD EDIT
Browse files Browse the repository at this point in the history
  • Loading branch information
Spatison committed Sep 15, 2024
1 parent e6f391a commit f18830b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Content.Shared/Wieldable/WieldableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ public bool TryWield(EntityUid used, WieldableComponent component, EntityUid use
/// <returns>True if the attempt wasn't blocked.</returns>
public bool TryUnwield(EntityUid used, WieldableComponent component, EntityUid user)
{
// WD EDIT START
if (!component.Wielded)
return false;

Expand All @@ -217,6 +218,7 @@ public bool TryUnwield(EntityUid used, WieldableComponent component, EntityUid u
&& TryComp<CartridgeAmmoComponent>(ballisticAmmoProvider.Entities[^1], out var cartridgeAmmo)
&& cartridgeAmmo.Spent)
return false;
// WD EDIT END

var ev = new BeforeUnwieldEvent();
RaiseLocalEvent(used, ev);
Expand Down

0 comments on commit f18830b

Please sign in to comment.