mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Fix master (#93342)
## About The Pull Request #93165 skewed with #93305
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
/datum/element/cuffable_item/proc/item_interaction(obj/item/source, mob/living/user, obj/item/tool, modifiers)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
if(!istype(tool, /obj/item/restraints/handcuffs) || iscyborg(user) || source.anchored || !user.CanReach(source))
|
||||
if(!istype(tool, /obj/item/restraints/handcuffs) || iscyborg(user) || source.anchored || !source.IsReachableBy(user))
|
||||
return NONE
|
||||
|
||||
INVOKE_ASYNC(src, PROC_REF(apply_cuffs), source, user, tool)
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
if(LAZYACCESS(user.do_afters, interaction_key))
|
||||
return FALSE
|
||||
|
||||
if(!(user.mobility_flags & MOBILITY_USE) || (user != owner && !user.CanReach(owner)))
|
||||
if(!(user.mobility_flags & MOBILITY_USE) || (user != owner && !owner.IsReachableBy(user)))
|
||||
owner.balloon_alert(user, "can't do it right now!")
|
||||
return FALSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user