changes a obscure interaction with cablecuffs and wirecutters (#21885)

* changes a obscure interaction with cablecuffs and wirecutters

fun fact: if you click on a cablecuffed man with wirecutters, you delete the cuffs
this makes that not the case if your intent is on harm.
feedback appreciated 'cause maybe disarm or grab should also have it cut them instead of the cuffs but this feels fine

* whoops

fix'd
This commit is contained in:
SirSkeleto
2019-03-07 13:05:53 -05:00
committed by Kurfursten
parent cea4f8db9c
commit ac51bce6e3

View File

@@ -193,7 +193,7 @@
item_state = "cutters_yellow"
/obj/item/weapon/wirecutters/attack(mob/living/carbon/C as mob, mob/user as mob)
if((iscarbon(C)) && (C.handcuffed) && (istype(C.handcuffed, /obj/item/weapon/handcuffs/cable)))
if((iscarbon(C)) && (C.handcuffed) && (istype(C.handcuffed, /obj/item/weapon/handcuffs/cable)) && user.a_intent!=I_HURT)
usr.visible_message("\The [user] cuts \the [C]'s [C.handcuffed.name] with \the [src]!",\
"You cut \the [C]'s [C.handcuffed.name] with \the [src]!",\
"You hear cable being cut.")