Makes Knock path grasp way easier to use against mechs than before (#87451)

Co-authored-by: necromanceranne <40847847+necromanceranne@users.noreply.github.com>
This commit is contained in:
KazooBard
2024-10-26 12:26:52 +02:00
committed by GitHub
co-authored by necromanceranne
parent f94ed49e02
commit f7359b4519
@@ -76,10 +76,12 @@
if(ismecha(target))
var/obj/vehicle/sealed/mecha/mecha = target
mecha.dna_lock = null
mecha.mecha_flags &= ~ID_LOCK_ON
for(var/mob/living/occupant as anything in mecha.occupants)
if(isAI(occupant))
continue
mecha.mob_exit(occupant, randomstep = TRUE)
occupant.Paralyze(5 SECONDS)
else if(istype(target,/obj/machinery/door/airlock))
var/obj/machinery/door/airlock/door = target
door.unbolt()