mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user