From f18830b77a1ee9d23743a1ed6f389f544a18b28c Mon Sep 17 00:00:00 2001
From: Spatison <137375981+Spatison@users.noreply.github.com>
Date: Sun, 15 Sep 2024 17:58:37 +0300
Subject: [PATCH] WD EDIT
---
Content.Shared/Wieldable/WieldableSystem.cs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Content.Shared/Wieldable/WieldableSystem.cs b/Content.Shared/Wieldable/WieldableSystem.cs
index 30b24fd9bb..4cdb23a376 100644
--- a/Content.Shared/Wieldable/WieldableSystem.cs
+++ b/Content.Shared/Wieldable/WieldableSystem.cs
@@ -209,6 +209,7 @@ public bool TryWield(EntityUid used, WieldableComponent component, EntityUid use
/// True if the attempt wasn't blocked.
public bool TryUnwield(EntityUid used, WieldableComponent component, EntityUid user)
{
+ // WD EDIT START
if (!component.Wielded)
return false;
@@ -217,6 +218,7 @@ public bool TryUnwield(EntityUid used, WieldableComponent component, EntityUid u
&& TryComp(ballisticAmmoProvider.Entities[^1], out var cartridgeAmmo)
&& cartridgeAmmo.Spent)
return false;
+ // WD EDIT END
var ev = new BeforeUnwieldEvent();
RaiseLocalEvent(used, ev);