Fix ghosts causing portals to spark

This commit is contained in:
Tad Hardesty
2017-10-30 22:35:46 -07:00
committed by CitadelStationBot
parent fa784b1d1a
commit 4e0a5bf3de
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -124,7 +124,7 @@
return ..()
/obj/effect/portal/proc/teleport(atom/movable/M)
if(!istype(M) || istype(M, /obj/effect) || (ismecha(M) && !mech_sized) || (!isobj(M) && !ismob(M))) //Things that shouldn't teleport.
if(!istype(M) || istype(M, /obj/effect) || isobserver(M) || (ismecha(M) && !mech_sized) || (!isobj(M) && !ismob(M))) //Things that shouldn't teleport.
return
var/turf/real_target = get_link_target_turf()
if(!istype(real_target))