ai stays seated and pulled while cuffed. (#30397)

* ai stays seated while cuffed.

* Do the thing I thought was dumb.... whatever.

* less than
This commit is contained in:
IProduceWidgets
2024-08-08 05:53:07 -04:00
committed by GitHub
parent 1df84515c7
commit f24949a0b0
3 changed files with 9 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
using Content.Server.Buckle.Systems;
using Content.Server.Buckle.Systems;
namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Combat;
@@ -19,7 +19,7 @@ public sealed partial class UnbuckleOperator : HTNOperator
{
base.Startup(blackboard);
var owner = blackboard.GetValue<EntityUid>(NPCBlackboard.Owner);
_buckle.Unbuckle(owner, null);
_buckle.TryUnbuckle(owner, owner, false);
}
public override HTNOperatorStatus Update(NPCBlackboard blackboard, float frameTime)