From 71da2aba134e94e9d40d274878980a396c7b1aff Mon Sep 17 00:00:00 2001 From: Joan Lung Date: Tue, 12 Jul 2016 20:50:20 -0400 Subject: [PATCH] Fixes shuttles killing AI camera eyes (#19280) * this wasn't even my bug but because mso was an ass I fixed it for him * spitefronds --- code/modules/shuttle/shuttle.dm | 47 +++++++++++++++++---------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm index 9c9aef953e2..ce13a5b2d54 100644 --- a/code/modules/shuttle/shuttle.dm +++ b/code/modules/shuttle/shuttle.dm @@ -525,30 +525,31 @@ // The corresponding tile will not be changed, so no roadkill for(var/atom/movable/AM in T1) - if(isliving(AM) && (!(AM in hurt_mobs))) - hurt_mobs |= AM - var/mob/living/M = AM - if(M.buckled) - M.buckled.unbuckle_mob(M, 1) - if(M.pulledby) - M.pulledby.stop_pulling() - M.stop_pulling() - M.visible_message("[M] is hit by \ - a hyperspace ripple[M.anchored ? "":" and is thrown clear"]!", - "You feel an immense \ - crushing pressure as the space around you ripples.") - if(M.anchored) - M.gib() - else - M.Paralyse(10) - M.ex_act(2) - step(M, dir) - continue + if(ismob(AM)) + if(isliving(AM) && !(AM in hurt_mobs)) + hurt_mobs |= AM + var/mob/living/M = AM + if(M.buckled) + M.buckled.unbuckle_mob(M, 1) + if(M.pulledby) + M.pulledby.stop_pulling() + M.stop_pulling() + M.visible_message("[M] is hit by \ + a hyperspace ripple[M.anchored ? "":" and is thrown clear"]!", + "You feel an immense \ + crushing pressure as the space around you ripples.") + if(M.anchored) + M.gib() + else + step(M, dir) + M.Paralyse(10) + M.ex_act(2) - if(!AM.anchored) - step(AM, dir) - else - qdel(AM) + else //non-living mobs shouldn't be affected by shuttles, which is why this is an else + if(!AM.anchored) + step(AM, dir) + else + qdel(AM) //used by shuttle subsystem to check timers /obj/docking_port/mobile/proc/check()