From 480b9ee436bd84259cf474b1fdb4f556a15c69eb Mon Sep 17 00:00:00 2001 From: KP <13428215+nok-ko@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:57:42 -0800 Subject: [PATCH] Prevent entities who do not have hands from setting off bombs. --- Content.Server/Defusable/Systems/DefusableSystem.cs | 2 +- Content.Server/Explosion/EntitySystems/TriggerSystem.OnUse.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Defusable/Systems/DefusableSystem.cs b/Content.Server/Defusable/Systems/DefusableSystem.cs index e9b074268f10..c450fd04fb1d 100644 --- a/Content.Server/Defusable/Systems/DefusableSystem.cs +++ b/Content.Server/Defusable/Systems/DefusableSystem.cs @@ -46,7 +46,7 @@ public override void Initialize() /// private void OnGetAltVerbs(EntityUid uid, DefusableComponent comp, GetVerbsEvent args) { - if (!args.CanInteract || !args.CanAccess) + if (!args.CanInteract || !args.CanAccess || args.Hands == null) return; args.Verbs.Add(new AlternativeVerb diff --git a/Content.Server/Explosion/EntitySystems/TriggerSystem.OnUse.cs b/Content.Server/Explosion/EntitySystems/TriggerSystem.OnUse.cs index c4b0d9c9ba1b..7edca9b803a6 100644 --- a/Content.Server/Explosion/EntitySystems/TriggerSystem.OnUse.cs +++ b/Content.Server/Explosion/EntitySystems/TriggerSystem.OnUse.cs @@ -45,7 +45,7 @@ private void OnExamined(EntityUid uid, OnUseTimerTriggerComponent component, Exa /// private void OnGetAltVerbs(EntityUid uid, OnUseTimerTriggerComponent component, GetVerbsEvent args) { - if (!args.CanInteract || !args.CanAccess) + if (!args.CanInteract || !args.CanAccess || args.Hands == null) return; if (component.UseVerbInstead)