Skip to content

Commit

Permalink
fixes infinite range changeling stings (tgstation#58946)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryll-Ryll authored May 9, 2021
1 parent d5344ea commit d7bc2ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/antagonists/changeling/powers/tiny_prick.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
return
if(!isturf(user.loc))
return
if(!get_path_to(user, target, max_distance = changeling.sting_range, simulated_only = FALSE))
return
if(!length(get_path_to(user, target, max_distance = changeling.sting_range, simulated_only = FALSE)))
return // no path within the sting's range is found. what a weird place to use the pathfinding system
if(target.mind && target.mind.has_antag_datum(/datum/antagonist/changeling))
sting_feedback(user, target)
changeling.chem_charges -= chemical_cost
Expand Down

0 comments on commit d7bc2ca

Please sign in to comment.