From 6b410a5e8c407c69d6a5c1f6acbc2e86d7e7dcb3 Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Mon, 24 Jul 2023 16:42:38 +0200 Subject: [PATCH] most likely fixes it all (#21778) --- .../mob/living/simple_animal/hostile/megafauna/bubblegum.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm index 74ee8389674..cb08ad6b5ca 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm @@ -171,6 +171,8 @@ Difficulty: Hard /mob/living/simple_animal/hostile/megafauna/bubblegum/proc/charge(atom/chargeat = target, delay = 5, chargepast = 2) if(!chargeat) return + if(target.z != z) + return var/chargeturf = get_turf(chargeat) if(!chargeturf) return @@ -371,6 +373,8 @@ Difficulty: Hard var/startingangle = rand(1, 360) if(!target) return + if(target.z != z) + return var/turf/chargeat = get_turf(target) var/srcplaced = FALSE if(!radius)