mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
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)
|
||||
|
||||
Reference in New Issue
Block a user