Moves tesla_ignore from var on /mob/living to secondary flag

This commit is contained in:
CitadelStationBot
2017-04-17 09:45:30 -05:00
parent 21827263f5
commit dd76874f1c
7 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ GLOBAL_LIST_INIT(blacklisted_tesla_types, typecacheof(list(/obj/machinery/atmosp
else if(isliving(A))
var/dist = get_dist(source, A)
var/mob/living/L = A
if(dist <= zap_range && (dist < closest_dist || !closest_mob) && L.stat != DEAD && !L.tesla_ignore)
if(dist <= zap_range && (dist < closest_dist || !closest_mob) && L.stat != DEAD && !HAS_SECONDARY_FLAG(L, TESLA_IGNORE))
closest_mob = L
closest_atom = A
closest_dist = dist