Allow observers to follow all living things on restricted levels (#10264)

This commit is contained in:
Jiří Barouš
2020-10-18 21:26:29 +02:00
committed by GitHub
parent 03d3f9e0a8
commit f496d68f2c
2 changed files with 7 additions and 2 deletions
@@ -186,9 +186,10 @@ Works together with spawning an observer, noted above.
return
if(following)
if(!iscarbon(following)) //If they are following something other than a carbon mob, teleport them
if(!isliving(following) || isanimal(following)) //If they are following something other than a living non-animal mob, teleport them
var/message = "You can not follow \the [following] on this level."
stop_following()
teleport_to_spawn("You can not follow \the [following] on this level.")
teleport_to_spawn(message)
else
return
//If they are moving around freely, teleport them