Tesla wormhole fix

This commit is contained in:
Mark van Alphen
2019-06-06 17:14:34 +02:00
parent cbce925372
commit 250ca032c4
2 changed files with 16 additions and 10 deletions
+9 -3
View File
@@ -79,14 +79,20 @@
user.forceMove(get_turf(src))
return TRUE
/obj/effect/portal/proc/teleport(atom/movable/M, force = FALSE)
/obj/effect/portal/proc/can_teleport(atom/movable/M)
. = TRUE
if(!istype(M))
return FALSE
. = FALSE
if(!M.simulated || iseffect(M))
return FALSE
. = FALSE
if(M.anchored && ismecha(M))
. = FALSE
/obj/effect/portal/proc/teleport(atom/movable/M)
if(!can_teleport(M))
return FALSE
if(!target)