Structure istype define

This commit is contained in:
Leo
2017-09-30 23:31:37 -03:00
committed by CitadelStationBot
parent aaa2a214cb
commit fd7c9110ca
10 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -244,7 +244,7 @@
else if(closest_blob)
continue
else if(istype(A, /obj/structure))
else if(isstructure(A))
var/obj/structure/S = A
var/dist = get_dist(source, A)
if(dist <= zap_range && (dist < closest_dist || !closest_tesla_coil) && !S.being_shocked)