Grab Stripping Fix (#9099)

Attempting to strip someone while holding a grab will now properly strip them, instead of trying to put a grab on them.
This commit is contained in:
Geeves
2020-06-13 10:11:50 +03:00
committed by GitHub
parent f0ba4b5572
commit 722faddd88
2 changed files with 7 additions and 1 deletions
@@ -69,7 +69,7 @@
var/stripping
var/obj/item/held = user.get_active_hand()
if(!istype(held) || is_robot_module(held))
if(!istype(held) || is_robot_module(held) || istype(held, /obj/item/grab))
if(!istype(target_slot)) // They aren't holding anything valid and there's nothing to remove, why are we even here?
return 0
if(!target_slot.canremove)