Skip to content

Commit

Permalink
FIX: Borg can offer item to another (#2224)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeZer2 authored Nov 11, 2024
1 parent b3b36f5 commit 91d54ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Content.Server/SS220/ItemOfferVerb/Systems/ItemOfferSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Content.Shared.Verbs;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Content.Shared.Silicons.Borgs.Components;

namespace Content.Server.SS220.ItemOfferVerb.Systems
{
Expand Down Expand Up @@ -82,6 +83,10 @@ private void AddOfferVerb(EntityUid uid, HandsComponent component, GetVerbsEvent
|| args.Target == args.User || !FindFreeHand(component, out var freeHand))
return;

// (fix https://github.com/SerbiaStrong-220/space-station-14/issues/2054)
if (HasComp<BorgChassisComponent>(args.User))
return;

EquipmentVerb verb = new EquipmentVerb()
{
Text = "Передать предмет",
Expand Down

0 comments on commit 91d54ae

Please sign in to comment.