mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 20:23:26 +00:00
Ninjas can no longer teleport unto turfs that contain solid objects.
This commit is contained in:
@@ -119,6 +119,11 @@
|
|||||||
H << "<span class='warning'>You cannot use your teleporter on this Z-level.</span>"
|
H << "<span class='warning'>You cannot use your teleporter on this Z-level.</span>"
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
for(var/atom/A in T)
|
||||||
|
if(A.density)
|
||||||
|
H << "<span class='warning'>You cannot teleport to a location with solid objects.</span>"
|
||||||
|
return 0
|
||||||
|
|
||||||
phase_out(H,get_turf(H))
|
phase_out(H,get_turf(H))
|
||||||
H.loc = T
|
H.loc = T
|
||||||
phase_in(H,get_turf(H))
|
phase_in(H,get_turf(H))
|
||||||
|
|||||||
Reference in New Issue
Block a user