Fixes phased/jaunting mobs falling into chasms (#40316)

This commit is contained in:
ShizCalev
2018-09-18 11:14:33 -04:00
committed by Joan Lung
parent 2b75e693d1
commit 6e1b3deb76
11 changed files with 40 additions and 37 deletions
+2
View File
@@ -1096,6 +1096,8 @@ GLOBAL_LIST_INIT(hallucination_list, list(
/obj/effect/hallucination/danger/chasm/Crossed(atom/movable/AM)
if(AM == target)
if(istype(target, /obj/effect/dummy/phased_mob))
return
to_chat(target, "<span class='userdanger'>You fall into the chasm!</span>")
target.Knockdown(40)
addtimer(CALLBACK(GLOBAL_PROC, .proc/to_chat, target, "<span class='notice'>It's surprisingly shallow.</span>"), 15)