From 6ecdf9df333a5bf4d36cba2a0305e810a53156b5 Mon Sep 17 00:00:00 2001 From: EgorDinamit Date: Wed, 29 Nov 2023 00:43:10 +0300 Subject: [PATCH] Fixes pale fixer teleport, hopefuly --- .../modules/mob/living/simple_animal/hostile/ordeal/white.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/ordeal/white.dm b/code/modules/mob/living/simple_animal/hostile/ordeal/white.dm index c6c09ddac103..de5572f863f1 100644 --- a/code/modules/mob/living/simple_animal/hostile/ordeal/white.dm +++ b/code/modules/mob/living/simple_animal/hostile/ordeal/white.dm @@ -683,7 +683,10 @@ continue if(get_dist(src, H) < 8) continue - potential_teleports += pick(get_adjacent_open_turfs(H)) + var/list/adj_turfs = get_adjacent_open_turfs(H) + if(!LAZYLEN(adj_turfs)) + continue + potential_teleports += pick(adj_turfs) if(!LAZYLEN(potential_teleports)) return // Nowhere to run! var/turf/target_turf = pick(potential_teleports)