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.
This commit is contained in:
Alberyk
2017-05-16 09:45:01 +03:00
committed by skull132
parent 2b9664a2c7
commit 67d0eadd4c
+2 -1
View File
@@ -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'
cuff_sound = 'sound/weapons/cablecuff.ogg'