Skip to content

Commit

Permalink
lurkers should stop harassing people they shouldn't
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Nov 3, 2023
1 parent 74a4cf1 commit c5a7f67
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
registered_turfs += cycled_open_turf

var/mob/living/carbon/human/possible_target = locate() in cycled_open_turf
if(possible_target && (!parent.current_target || get_dist(parent, possible_target) < get_dist(parent, parent.current_target)))
if(possible_target && (!parent.current_target || get_dist(parent, possible_target) < get_dist(parent, parent.current_target)) && parent.check_mob_target(possible_target))
parent.current_target = possible_target

/datum/xeno_ai_movement/linger/lurking/proc/unregister_turf_signals()
Expand All @@ -261,8 +261,9 @@
if(!istype(entering_atom, /mob/living/carbon/human))
return

if(!parent.current_target || get_dist(parent, entering_atom) < get_dist(parent, parent.current_target))
parent.current_target = entering_atom
var/mob/living/carbon/human/possible_target = entering_atom
if(!parent.current_target || get_dist(parent, possible_target) < get_dist(parent, parent.current_target) && parent.check_mob_target(possible_target))
parent.current_target = possible_target

/datum/xeno_ai_movement/linger/lurking/proc/lurking_parent_moved(atom/movable/moving_atom, atom/oldloc, direction, Forced)
SIGNAL_HANDLER
Expand Down

0 comments on commit c5a7f67

Please sign in to comment.