hierophant staff / blue / red cube no longer ignore teleport blocks (#18868)

This commit is contained in:
Qwertytoforty
2022-08-21 09:31:16 +01:00
committed by GitHub
parent 400e9f8c65
commit d6e24aa850
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -148,6 +148,8 @@ Turf and target are seperate in case you want to teleport some distance from a t
return FALSE
if(A.tele_proof)
return TRUE
if(!is_teleport_allowed(O.z))
return TRUE
else
return FALSE
@@ -159,6 +159,9 @@
if(get_dist(user, beacon) <= 2) //beacon too close abort
to_chat(user, "<span class='warning'>You are too close to the beacon to teleport to it!</span>")
return
if(is_in_teleport_proof_area(beacon))
to_chat(user, "<span class='warning'>[src] sparks and fizzles.</span>")
return
if(is_blocked_turf(get_turf(beacon), TRUE))
to_chat(user, "<span class='warning'>The beacon is blocked by something, preventing teleportation!</span>")
return