Merge pull request #3416 from Citadel-Station-13/upstream-merge-31698

[MIRROR] Prevents tiles from being placed on top of buckled mobs
This commit is contained in:
LetterJay
2017-10-16 07:09:30 -04:00
committed by GitHub
@@ -55,6 +55,11 @@
return
else if(istype(C, /obj/item/stack/tile))
if(!broken && !burnt)
for(var/obj/O in src)
if(O.level == 1) //ex. pipes laid underneath a tile
for(var/M in O.buckled_mobs)
to_chat(user, "<span class='warning'>Someone is buckled to \the [O]! Unbuckle [M] to move \him out of the way.</span>")
return
var/obj/item/stack/tile/W = C
if(!W.use(1))
return