Skip to content

Commit

Permalink
Fix my wacky comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugOk committed Feb 12, 2024
1 parent 2afb562 commit c678875
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ private void OnMeleeThrowOnHitAttempt(Entity<SharedGlimmerReactiveComponent> ent

_lightning.ShootRandomLightnings(uid, 10, 2, "SuperchargedLightning", 2, false);

// check if the transform parent of args.thing is alive
// Check if the parent of the user is alive, which will be the case if the user is an item and is being held.
var zapTarget = _transformSystem.GetParentUid(args.User);
if (TryComp<MindContainerComponent>(zapTarget, out _))
_electrocutionSystem.TryDoElectrocution(zapTarget, uid, 5, TimeSpan.FromSeconds(3), true,
Expand Down

0 comments on commit c678875

Please sign in to comment.