Prevents AIS from gibbing when being carded from a mech (#16271)

This commit is contained in:
Qwertytoforty
2021-06-28 15:45:24 +01:00
committed by GitHub
parent 1ace0bd912
commit e99a5952ae
+2 -1
View File
@@ -1200,7 +1200,8 @@
/obj/mecha/Exited(atom/movable/M, atom/newloc)
if(occupant && occupant == M) // The occupant exited the mech without calling go_out()
go_out(1, newloc)
if(!isAI(occupant)) //This causes carded AIS to gib, so we do not want this to be called during carding.
go_out(1, newloc)
/obj/mecha/proc/go_out(forced, atom/newloc = loc)
if(!occupant)