Merge pull request #11688 from Markolie/swarmerfix

Fix gutlunches not eating and tesla wormhole fix
This commit is contained in:
Crazy Lemon
2019-06-06 20:13:18 -07:00
committed by GitHub
5 changed files with 21 additions and 15 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)