mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-10 06:37:05 +01:00
Merge pull request #11646 from Ccomp5950/ninja_VANISH
Ninjas teleporter: Checks Z levels and distance.
This commit is contained in:
@@ -121,6 +121,11 @@
|
||||
|
||||
if(T.contains_dense_objects())
|
||||
H << "<span class='warning'>You cannot teleport to a location with solid objects.</span>"
|
||||
return 0
|
||||
|
||||
if(T.z != H.z || get_dist(T, get_turf(H)) > world.view)
|
||||
H << "<span class='warning'>You cannot teleport to such a distant object.</span>"
|
||||
return 0
|
||||
|
||||
phase_out(H,get_turf(H))
|
||||
H.forceMove(T)
|
||||
|
||||
Reference in New Issue
Block a user