From 0aaf8493d695a2e470de3b87db3e3d4bf40b111a Mon Sep 17 00:00:00 2001 From: InsightfulParasite <109536843+InsightfulParasite@users.noreply.github.com> Date: Wed, 24 Apr 2024 22:03:45 -0400 Subject: [PATCH] Fixes Amber Ordeal Runtime on Dungeon Map (#2081) Amber ordeals were stuck picking from a empty list without turning off their own burrowing. --- .../mob/living/simple_animal/hostile/ordeal/amber.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/ordeal/amber.dm b/code/modules/mob/living/simple_animal/hostile/ordeal/amber.dm index b9c1f0b54b6a..9e908e4c0d82 100644 --- a/code/modules/mob/living/simple_animal/hostile/ordeal/amber.dm +++ b/code/modules/mob/living/simple_animal/hostile/ordeal/amber.dm @@ -103,7 +103,11 @@ /mob/living/simple_animal/hostile/ordeal/amber_bug/proc/BurrowIn(turf/T) if(!T) - T = pick(GLOB.xeno_spawn) + if(GLOB.xeno_spawn.len) + T = pick(GLOB.xeno_spawn) + else + can_burrow_solo = FALSE + return burrowing = TRUE visible_message(span_danger("[src] burrows into the ground!")) playsound(get_turf(src), 'sound/effects/ordeals/amber/dawn_dig_in.ogg', 25, 1)