Update code/modules/power/tesla/energy_ball.dm

Co-authored-by: Putnam3145 <putnam3145@gmail.com>
This commit is contained in:
raspy-on-osu
2020-08-24 23:33:27 -04:00
committed by GitHub
parent df30569104
commit 77015ed166
+1 -1
View File
@@ -96,7 +96,7 @@
var/rods = GLOB.grounding_rods
if(rods) // grounding rods pull the tesla ball, picks the nearest one
for(var/rod in rods)
if(!rodtarget)
if(!rodtarget || get_dist(src,rod)<get_dist(src,rodtarget))
rodtarget=rod
if(get_dist(src,rod)<get_dist(src,rodtarget))