From 77592be781d2dc3b947ca00410867b8e596f85a0 Mon Sep 17 00:00:00 2001 From: danni-boy <32673848+danni-boy@users.noreply.github.com> Date: Mon, 2 Nov 2020 21:29:52 +0000 Subject: [PATCH] Checks if something has move_resist INFINITY. --- code/game/machinery/mass_driver.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/mass_driver.dm b/code/game/machinery/mass_driver.dm index c8a220ca3f2..8c960774b63 100644 --- a/code/game/machinery/mass_driver.dm +++ b/code/game/machinery/mass_driver.dm @@ -47,7 +47,7 @@ var/O_limit = 0 var/atom/target = get_edge_target_turf(src, dir) for(var/atom/movable/O in loc) - if(!O.anchored||istype(O, /obj/mecha))//Mechs need their launch platforms. + if((!O.anchored && O.move_resist != INFINITY) || istype(O, /obj/mecha)) //Mechs need their launch platforms. Also checks if something is anchored or has move resist INFINITY, which should stop ghost flinging. O_limit++ if(O_limit >= 20)//so no more than 20 items are sent at a time, probably for counter-lag purposes break