Fixes for slime surgery runtime

don't know why this works but it does and doesn't break other surgeries from what i can tell
This commit is contained in:
yashaldie
2014-03-07 04:55:23 -05:00
parent 61a4e37466
commit 69dfb92719
+4
View File
@@ -6,6 +6,8 @@
/datum/surgery_step/generic/
can_infect = 1
can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
if (isslime(target))
return 0
if (target_zone == "eyes") //there are specific steps for eye surgery
return 0
if (!hasorgans(target))
@@ -32,6 +34,8 @@
max_duration = 110
can_use(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
if(isslime(target))
return 0
var/datum/organ/external/affected = target.get_organ(target_zone)
return ..() && affected.open == 0 && target_zone != "mouth"