Replaces most instances of if(E & ORGAN_DESTROYED) with if(E.is_stump()). Fixes #11468

This commit is contained in:
mwerezak
2015-12-06 04:17:52 -05:00
parent 5de9314803
commit 9135a609cb
23 changed files with 48 additions and 145 deletions
+1 -3
View File
@@ -15,7 +15,7 @@
var/obj/item/organ/external/affected = target.get_organ(target_zone)
if (affected == null)
return 0
if (affected.status & ORGAN_DESTROYED)
if (affected.is_stump())
return 0
if (target_zone == "head" && target.species && (target.species.flags & IS_SYNTHETIC))
return 1
@@ -290,8 +290,6 @@
var/obj/item/organ/external/affected = target.get_organ(target_zone)
if (affected == null)
return 0
if (affected.status & ORGAN_DESTROYED)
return 0
return !affected.cannot_amputate
begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)