Skip to content

Commit

Permalink
T'was a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Oct 21, 2024
1 parent 31eb6f9 commit 74ab67f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/LifeDrainer/LifeDrainerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void OnDrain(Entity<LifeDrainerComponent> ent, ref LifeDrainDoAfterEvent
_faction.AggroEntity(uid, puller);

// someone pulled me away
if (TryComp<PullableComponent>(ent, out pullable) && pullable.Puller is {} selfPuller)
if (TryComp(ent, out pullable) && pullable.Puller is {} selfPuller)
_faction.AggroEntity(uid, selfPuller);

// someone carried the psionic away
Expand Down Expand Up @@ -119,7 +119,7 @@ public bool TryDrain(Entity<LifeDrainerComponent> ent, EntityUid target)
var ev = new LifeDrainDoAfterEvent();
var args = new DoAfterArgs(EntityManager, uid, comp.Delay, ev, target: target, eventTarget: uid)
{
BreakOnTargetMove = false, // If someone drags the target away, we still give the wisp a chance to consume it. This should still respect the distance threshold.
BreakOnTargetMove = true,
BreakOnUserMove = true,
MovementThreshold = 2f,
NeedHand = false
Expand Down

0 comments on commit 74ab67f

Please sign in to comment.