Prevents grabbing things that you cannot pull (#17306)

This commit is contained in:
Charlie
2022-01-09 20:04:53 +01:00
committed by GitHub
parent 10a179f595
commit 0fad01fec3
+4 -2
View File
@@ -261,9 +261,11 @@
/mob/living/proc/grabbedby(mob/living/carbon/user, supress_message = FALSE)
if(user == src || anchored)
return 0
return FALSE
if(!(status_flags & CANPUSH))
return 0
return FALSE
if(user.pull_force < move_force)
return FALSE
for(var/obj/item/grab/G in grabbed_by)
if(G.assailant == user)