Attacking a missing limb instead picks a random bodypart (#24554)

Co-authored-by: cybercapitalism <98280110+cybercapitalism@users.noreply.github.com>
This commit is contained in:
chuga-git
2024-04-07 09:38:22 +00:00
committed by GitHub
co-authored by cybercapitalism
parent df8fef119d
commit 05e484e794
@@ -474,9 +474,11 @@ emp_act
return FALSE
var/obj/item/organ/external/affecting = get_organ(ran_zone(user.zone_selected))
// if the targeted limb doesn't exist, pick a new one at random so you don't have to swap target zone
if(!affecting)
to_chat(user, "<span class='danger'>They are missing that limb!</span>")
return FALSE
affecting = pick(bodyparts)
var/hit_area = parse_zone(affecting.limb_name)
if(user != src)