Skip to content

Commit

Permalink
Handless mobs can no longer wipe devices (#30149)
Browse files Browse the repository at this point in the history
add check for hands
  • Loading branch information
Scribbles0 authored Jul 23, 2024
1 parent e7aa976 commit 7381df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Ghost/Roles/ToggleableGhostRoleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private void UpdateAppearance(EntityUid uid, ToggleableGhostRoleStatus status)

private void AddWipeVerb(EntityUid uid, ToggleableGhostRoleComponent component, GetVerbsEvent<ActivationVerb> args)
{
if (!args.CanAccess || !args.CanInteract)
if (args.Hands == null || !args.CanAccess || !args.CanInteract)
return;

if (TryComp<MindContainerComponent>(uid, out var mind) && mind.HasMind)
Expand Down

0 comments on commit 7381df4

Please sign in to comment.