From: Scribbles0 <91828755+Scribbles0@users.noreply.github.com> Date: Tue, 23 Jul 2024 17:47:07 +0000 (-0700) Subject: Handless mobs can no longer wipe devices (#30149) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=7381df4335639d1a1c918fb76f38c7cbd451a3fb;p=space-station-14.git Handless mobs can no longer wipe devices (#30149) add check for hands --- diff --git a/Content.Server/Ghost/Roles/ToggleableGhostRoleSystem.cs b/Content.Server/Ghost/Roles/ToggleableGhostRoleSystem.cs index 8354a24f90..64e46bb608 100644 --- a/Content.Server/Ghost/Roles/ToggleableGhostRoleSystem.cs +++ b/Content.Server/Ghost/Roles/ToggleableGhostRoleSystem.cs @@ -96,7 +96,7 @@ public sealed class ToggleableGhostRoleSystem : EntitySystem private void AddWipeVerb(EntityUid uid, ToggleableGhostRoleComponent component, GetVerbsEvent args) { - if (!args.CanAccess || !args.CanInteract) + if (args.Hands == null || !args.CanAccess || !args.CanInteract) return; if (TryComp(uid, out var mind) && mind.HasMind)