Fixes portals being able to send ghosts and other technical mobs

This commit is contained in:
Heroman
2019-04-08 20:37:05 +10:00
parent 6a2cd30e14
commit e39fe9b304

View File

@@ -13,18 +13,24 @@ GLOBAL_LIST_BOILERPLATE(all_portals, /obj/effect/portal)
anchored = 1.0
/obj/effect/portal/Bumped(mob/M as mob|obj)
if(istype(M,/mob) && !(istype(M,/mob/living))
return //do not send ghosts, zshadows, ai eyes, etc
spawn(0)
src.teleport(M)
return
return
/obj/effect/portal/Crossed(AM as mob|obj)
if(istype(M,/mob) && !(istype(M,/mob/living))
return //do not send ghosts, zshadows, ai eyes, etc
spawn(0)
src.teleport(AM)
return
return
/obj/effect/portal/attack_hand(mob/user as mob)
if(istype(M,/mob) && !(istype(M,/mob/living))
return //do not send ghosts, zshadows, ai eyes, etc
spawn(0)
src.teleport(user)
return