Fixes ghosts phasing into reality. (#9361)

When leaving bluespace you would phase into reality despite being a ghost, breaking the fabric of time and space

This no longer happens
This commit is contained in:
Matt Atlas
2020-07-14 21:56:30 +03:00
committed by GitHub
parent 95eaf0c8c7
commit 29205c5c84
2 changed files with 43 additions and 2 deletions
+2 -2
View File
@@ -112,12 +112,12 @@
/obj/effect/step_trigger/teleporter/random/Trigger(var/atom/movable/A)
if(teleport_x && teleport_y && teleport_z)
if(teleport_x_offset && teleport_y_offset && teleport_z_offset)
if(ismob(A))
if(isliving(A))
var/mob/M = A
M.visible_message(FONT_LARGE(SPAN_WARNING("\The [A] blinks out of reality!")), FONT_LARGE(SPAN_WARNING("You feel your stomach churn as you slip into bluespace!")))
A.x = rand(teleport_x, teleport_x_offset)
A.y = rand(teleport_y, teleport_y_offset)
A.z = rand(teleport_z, teleport_z_offset)
if(ismob(A))
if(isliving(A))
var/mob/M = A
M.visible_message(FONT_LARGE(SPAN_WARNING("\The [A] blinks into reality!")), FONT_LARGE(SPAN_WARNING("You feel your stomach turn as you get thrown out of bluespace!")))