From 67d0eadd4cf86b5c2b6324d8dfe93c4d0b384269 Mon Sep 17 00:00:00 2001 From: Alberyk Date: Tue, 16 May 2017 03:45:01 -0300 Subject: [PATCH] Fix species without mouths being able to chew on hands while cuffed (#2279) Pretty much check for the lack of mouths in the user, so, that will stop ipcs and other species without mouth to chew on their hands to get off cuffs. --- code/game/objects/items/weapons/handcuffs.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/handcuffs.dm b/code/game/objects/items/weapons/handcuffs.dm index 060298974bd..3a490994173 100644 --- a/code/game/objects/items/weapons/handcuffs.dm +++ b/code/game/objects/items/weapons/handcuffs.dm @@ -88,6 +88,7 @@ var/last_chew = 0 if (!H.handcuffed) return if (H.a_intent != I_HURT) return if (H.zone_sel.selecting != "mouth") return + if (!H.check_has_mouth()) return if (H.wear_mask) return if (istype(H.wear_suit, /obj/item/clothing/suit/straight_jacket)) return @@ -167,4 +168,4 @@ var/last_chew = 0 icon = 'icons/obj/items.dmi' icon_state = "ziptie" breakouttime = 600 - cuff_sound = 'sound/weapons/cablecuff.ogg' \ No newline at end of file + cuff_sound = 'sound/weapons/cablecuff.ogg'