diff --git a/code/datums/ai/_ai_controller.dm b/code/datums/ai/_ai_controller.dm index 7ed49e95a5a..f79ddd5f606 100644 --- a/code/datums/ai/_ai_controller.dm +++ b/code/datums/ai/_ai_controller.dm @@ -145,6 +145,8 @@ multiple modular subtrees with behaviors set_new_cells() /datum/ai_controller/proc/set_new_cells() + if(isnull(our_cells)) + return var/turf/our_turf = get_turf(pawn) @@ -163,7 +165,7 @@ multiple modular subtrees with behaviors recalculate_idle() /datum/ai_controller/proc/should_idle() - if(!can_idle) + if(!can_idle || isnull(our_cells)) return FALSE for(var/datum/spatial_grid_cell/grid as anything in our_cells.member_cells) if(length(grid.client_contents)) diff --git a/code/modules/mob/living/basic/slime/ai/controller.dm b/code/modules/mob/living/basic/slime/ai/controller.dm index 9ecf66ad744..41466b29734 100644 --- a/code/modules/mob/living/basic/slime/ai/controller.dm +++ b/code/modules/mob/living/basic/slime/ai/controller.dm @@ -19,6 +19,7 @@ /datum/ai_planning_subtree/basic_melee_attack_subtree/slime, /datum/ai_planning_subtree/random_speech/slime, ) + can_idle = FALSE /datum/ai_controller/basic_controller/slime/CancelActions() ..()