mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Block two people cuffing to one item (#96050)
## About The Pull Request Fixes #96042 Fixes #96041 Simply stops two people from cuffing to the same item We could add support for this behavior later, but we'd need to sort out how that behavior should work ## Changelog 🆑 Melbert fix: Blocks two people cuffing to one item /🆑
This commit is contained in:
@@ -62,6 +62,9 @@
|
||||
if(cuffs.handcuffs_clumsiness_check(user))
|
||||
return
|
||||
|
||||
if(SEND_SIGNAL(source, COMSIG_ITEM_PRE_CUFFED_TO_MOB, user, cuffs) & BLOCK_ITEM_CUFF)
|
||||
return
|
||||
|
||||
source.balloon_alert(user, "cuffing item...")
|
||||
playsound(source, cuffs.cuffsound, 30, TRUE, -2)
|
||||
if(!do_after(user, cuffs.get_handcuff_time(user), source))
|
||||
|
||||
Reference in New Issue
Block a user