Skip to content

Commit da36e9f

Browse files
authored
Crashing into stuff while leaping will actually work now. (ParadiseSS13#25545)
1 parent e20bbc6 commit da36e9f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

code/game/dna/mutations/mutation_powers.dm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,11 +562,13 @@
562562
for(var/atom/movable/hit_thing in turf_to_check)
563563
if(isliving(hit_thing))
564564
var/mob/living/hit_mob = hit_thing
565-
return hit_mob.density
565+
if(hit_mob.density)
566+
return hit_mob
566567

567568
if(isobj(hit_thing))
568569
var/obj/hit_obj = hit_thing
569-
return hit_obj.density
570+
if(hit_obj.density)
571+
return hit_obj
570572

571573
return FALSE
572574

0 commit comments

Comments
 (0)