Fixes being able to use an invalid limb for prosthetic replacement surgery

Checked for invalid limbs without actually stopping them
This commit is contained in:
Remie Richards
2016-08-12 21:54:23 +01:00
committed by GitHub
parent 57b2773146
commit 44486b256a
@@ -36,6 +36,7 @@
user.visible_message("[user] begins to replace [target]'s [parse_zone(target_zone)].", "<span class ='notice'>You begin to replace [target]'s [parse_zone(target_zone)]...</span>")
else
user << "<span class='warning'>[tool] isn't the right type for [parse_zone(target_zone)].</span>"
return -1
/datum/surgery_step/add_prosthetic/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
var/obj/item/bodypart/L