diff --git a/code/datums/components/xeno/ai_behavior_overrides/attack_override_behavior.dm b/code/datums/components/xeno/ai_behavior_overrides/attack_override_behavior.dm index 2b2290586e..d996158840 100644 --- a/code/datums/components/xeno/ai_behavior_overrides/attack_override_behavior.dm +++ b/code/datums/components/xeno/ai_behavior_overrides/attack_override_behavior.dm @@ -27,7 +27,7 @@ return FALSE processing_xeno.current_target = parent - processing_xeno.resting = FALSE + processing_xeno.set_resting(FALSE, FALSE, TRUE) if(prob(5)) processing_xeno.emote("hiss") diff --git a/code/modules/mob/living/carbon/xenomorph/ai/movement/base_define.dm b/code/modules/mob/living/carbon/xenomorph/ai/movement/base_define.dm index d1ecb3ce82..172461bfce 100644 --- a/code/modules/mob/living/carbon/xenomorph/ai/movement/base_define.dm +++ b/code/modules/mob/living/carbon/xenomorph/ai/movement/base_define.dm @@ -39,15 +39,13 @@ if(potential_weeds && IS_SAME_HIVENUMBER(idle_xeno, potential_weeds) && !potential_home.density && get_dist(idle_xeno, potential_home) < shortest_distance) home_turf = potential_home shortest_distance = get_dist(idle_xeno, potential_home) - if(idle_xeno.resting) - idle_xeno.lay_down() - + idle_xeno.set_resting(FALSE, FALSE, TRUE) if(!home_turf) return if(idle_xeno.move_to_next_turf(home_turf, home_locate_range)) - if(get_dist(home_turf, idle_xeno) <= 0 && !idle_xeno.resting) - idle_xeno.lay_down() + if(get_dist(home_turf, idle_xeno) <= 0) + idle_xeno.set_resting(TRUE, FALSE, TRUE) else home_turf = null diff --git a/code/modules/mob/living/carbon/xenomorph/ai/movement/drone.dm b/code/modules/mob/living/carbon/xenomorph/ai/movement/drone.dm index 468045d91b..37c45722c7 100644 --- a/code/modules/mob/living/carbon/xenomorph/ai/movement/drone.dm +++ b/code/modules/mob/living/carbon/xenomorph/ai/movement/drone.dm @@ -50,11 +50,10 @@ home_turf = potential_home if(!home_turf) - if(!idle_xeno.resting) - idle_xeno.lay_down() + idle_xeno.set_resting(TRUE, FALSE, TRUE) return - idle_xeno.resting = FALSE + idle_xeno.set_resting(FALSE, FALSE, TRUE) if(home_turf == last_home_turf) blacklisted_turfs += home_turf