Adds z level checks for pride mirror (#17215)

This commit is contained in:
S34N
2021-12-16 17:27:26 +00:00
committed by GitHub
parent fd87f4d085
commit 6e1976f5cf
@@ -115,7 +115,14 @@
for(var/level in levels)
if(!is_teleport_allowed(level))
levels -= level
if(user.z != 3) //if you somehow manage to bloody get out of lavaland without closing the UI
var/turf/return_turf = locate(user.x, user.y, 3) //return to sender
var/mob/living/carbon/human/fool = user
if(return_turf && fool)
to_chat(fool, "<span class='danger'><B>You dare try to play me for a fool?</B></span>")
fool.monkeyize()
fool.forceMove(return_turf)
return
T.ChangeTurf(/turf/simulated/floor/chasm)
var/turf/simulated/floor/chasm/C = T
C.drop_x = T.x