Let ghosts use teleporter

This commit is contained in:
Markolie
2015-02-17 23:53:57 +01:00
parent 2adf44e4a1
commit b39a86078e
+5 -3
View File
@@ -65,9 +65,11 @@
/obj/machinery/teleport/hub/attack_ghost(mob/user as mob)
var/atom/l = loc
var/obj/machinery/computer/teleporter/com = locate(/obj/machinery/computer/teleporter, locate(l.x - 2, l.y, l.z))
if(com && com.locked)
user.loc = get_turf(com.locked)
var/obj/machinery/teleport/station/S = power_station
if(S)
var/obj/machinery/computer/teleporter/com = S.teleporter_console
if(com && com.target)
user.loc = get_turf(com.target)
/obj/effect/portal/attack_ghost(mob/user as mob)
if(target)