Portal tweaks

This commit is contained in:
Cadyn
2021-03-04 01:13:34 -08:00
parent 7cae69b7c9
commit 6b49476cc1
+5 -1
View File
@@ -20,10 +20,14 @@
/obj/effect/simple_portal/proc/handle_teleport(atom/movable/AM)
if(destination)
AM.forceMove(destination)
if(!AM.is_incorporeal())
if(!AM.is_incorporeal() && !istype(AM,/mob/observer))
playsound(get_turf(src),teleport_sound,60,1)
playsound(get_turf(destination),teleport_sound,60,1)
/obj/effect/simple_portal/attack_ghost(var/mob/observer/dead/user)
. = ..()
handle_teleport(user)
/obj/effect/simple_portal/coords
var/tele_x
var/tele_y