Fixed bug of peridaxon healing robotic organs

This commit is contained in:
Tramziller
2015-01-05 22:17:40 +01:00
parent d1d88fa365
commit 06e6277dc6

View File

@@ -1280,9 +1280,9 @@ datum
if(ishuman(M))
var/mob/living/carbon/human/H = M
//Peridaxon is hard enough to get, it's probably fair to make this all internal organs
//Peridaxon heals only non-robotic organs
for(var/datum/organ/internal/I in H.internal_organs)
if(I.damage > 0)
if((I.damage > 0) && (I.robotic != 2))
I.damage = max(I.damage - 0.20, 0)
..()
return