From e9efeb5e3f95ccbf9c76c9b06aa67ac70a5a7a96 Mon Sep 17 00:00:00 2001 From: KP <13428215+nok-ko@users.noreply.github.com> Date: Thu, 7 Dec 2023 22:34:18 -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 e9b074268f1..c450fd04fb1 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 fb1f72eb445..f663c2802c1 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)