Skip to content

Commit

Permalink
Tribal Bola Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottfrei committed Oct 26, 2023
1 parent 8d084ae commit f22f82d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions code/game/objects/items/weapons/legcuffs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,13 @@
reusable = FALSE


/obj/item/restraints/legcuffs/bola/sinew/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
if(..())
/obj/item/restraints/legcuffs/bola/sinew/dropped(mob/living/carbon/user, silent = FALSE)
. = ..()

if(!istype(user) || user.legcuffed != src)
return

var/mob/living/carbon/target = hit_atom // we already check for carbon in parent
target.apply_damage(10, BRUTE, (pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG)))
new /obj/item/restraints/handcuffs/sinew(target.loc)
new /obj/item/stack/sheet/bone(target.loc, 2)
user.apply_damage(10, BRUTE, (pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG)))
new /obj/item/restraints/handcuffs/sinew(user.loc)
new /obj/item/stack/sheet/bone(user.loc, 2)

0 comments on commit f22f82d

Please sign in to comment.