Fixes jaunting mobs being unable to move through bar tables (#51947)

This commit is contained in:
ShizCalev
2020-07-02 13:15:35 +08:00
committed by GitHub
parent 1f3b41f35f
commit 6a2f7ec3cf
+3 -3
View File
@@ -190,15 +190,15 @@
var/boot_dir = 1
/obj/structure/table/wood/bar/Crossed(atom/movable/AM)
if(isliving(AM) && !is_barstaff(AM))
var/mob/living/M = AM
if(istype(M) && !M.incorporeal_move && !is_barstaff(M))
// No climbing on the bar please
var/mob/living/M = AM
var/throwtarget = get_edge_target_turf(src, boot_dir)
M.Paralyze(40)
M.throw_at(throwtarget, 5, 1)
to_chat(M, "<span class='notice'>No climbing on the bar please.</span>")
else
. = ..()
return ..()
/obj/structure/table/wood/bar/proc/is_barstaff(mob/living/user)
. = FALSE