Oversight fix: Augment Surgery Limb Status Fix (#21172)

* augment surgery oversight fix

* comment update for logic check
This commit is contained in:
Burzah
2023-06-02 11:50:45 -07:00
committed by GitHub
parent 0e9909d9b5
commit 65751dcf58
+1 -1
View File
@@ -16,7 +16,7 @@
if(ishuman(target))
var/mob/living/carbon/human/H = target
var/obj/item/organ/external/affected = H.get_organ(user.zone_selected)
if(affected.status & ORGAN_BROKEN) //The arm has to be in prime condition to augment it.
if(affected.status & ~(ORGAN_SPLINTED | ORGAN_SALVED)) //Checks the inverse of these flags, for example if the targeted limb was broken or burned. The limb must be in good condition to augment.
return FALSE
return TRUE