From da36e9fc46849c48b2d81784acd2d878fa7ff330 Mon Sep 17 00:00:00 2001 From: Charlie Nolan Date: Mon, 20 May 2024 20:45:00 -0700 Subject: [PATCH] Crashing into stuff while leaping will actually work now. (#25545) --- code/game/dna/mutations/mutation_powers.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/dna/mutations/mutation_powers.dm b/code/game/dna/mutations/mutation_powers.dm index d25a11adfd7..b6712420632 100644 --- a/code/game/dna/mutations/mutation_powers.dm +++ b/code/game/dna/mutations/mutation_powers.dm @@ -562,11 +562,13 @@ for(var/atom/movable/hit_thing in turf_to_check) if(isliving(hit_thing)) var/mob/living/hit_mob = hit_thing - return hit_mob.density + if(hit_mob.density) + return hit_mob if(isobj(hit_thing)) var/obj/hit_obj = hit_thing - return hit_obj.density + if(hit_obj.density) + return hit_obj return FALSE