Merge pull request #4335 from Tastyfish/hostilewerdsf

Fixes hostiles runtiming on targetting
This commit is contained in:
Fox McCloud
2016-05-01 04:07:07 -04:00

View File

@@ -104,7 +104,7 @@
var/possible_target_distance = get_dist(src, A)
if(target_dist < possible_target_distance)
Targets -= A
var/chosen_target = pick(Targets)//Pick the remaining targets (if any) at random
var/chosen_target = safepick(Targets)//Pick the remaining targets (if any) at random
return chosen_target
/mob/living/simple_animal/hostile/CanAttack(var/atom/the_target)//Can we actually attack a possible target?