mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Added another check for mobs buckled to roller beds (#20746)
Got stuck today due to being simultaneously buckled to a roller bed that was being folded. Added another check to hopefully plug this issue.
This commit is contained in:
@@ -447,6 +447,9 @@
|
||||
update_icon()
|
||||
|
||||
/obj/structure/bed/roller/proc/collapse()
|
||||
if(buckled)
|
||||
to_chat(usr, SPAN_WARNING("\The [buckled] is on \the [src]. Remove them first."))
|
||||
return
|
||||
usr.visible_message(SPAN_NOTICE("<b>[usr]</b> collapses \the [src]."), SPAN_NOTICE("You collapse \the [src]"))
|
||||
new held_item(get_turf(src))
|
||||
qdel(src)
|
||||
@@ -515,6 +518,7 @@
|
||||
remove_vitals(user)
|
||||
return
|
||||
if(buckled)
|
||||
to_chat(user, SPAN_WARNING("\The [buckled] is on \the [src]. Remove them first."))
|
||||
return
|
||||
collapse()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user