Fixes undislocation

This commit is contained in:
Yoshax
2016-07-22 04:19:49 +01:00
parent c0a60faf73
commit 3a953d895f
@@ -1328,13 +1328,11 @@
var/obj/item/organ/external/current_limb = organs_by_name[limb]
if(current_limb && current_limb.dislocated > 0 && !current_limb.is_parent_dislocated()) //if the parent is also dislocated you will have to relocate that first
limbs |= current_limb
var/choice = input(usr,"Which joint do you wish to relocate?") as null|anything in limbs
var/obj/item/organ/external/current_limb = input(usr,"Which joint do you wish to relocate?") as null|anything in limbs
if(!choice)
if(!current_limb)
return
var/obj/item/organ/external/current_limb = organs_by_name[choice]
if(self)
src << "<span class='warning'>You brace yourself to relocate your [current_limb.joint]...</span>"
else
@@ -1342,7 +1340,7 @@
if(!do_after(U, 30))
return
if(!choice || !current_limb || !S || !U)
if(!current_limb || !S || !U)
return
if(self)