Fix for internal organ surgery

Fixes internal organ surgery, and some other places where the same
problem would have cropped up
This commit is contained in:
VampyrBytes
2014-07-16 20:17:50 +01:00
parent 3962895c56
commit 34712ecc37
4 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -1747,7 +1747,7 @@ datum
// M.sdisabilities &= ~BLIND //doesn't even do anythig cos of the sdisabilities = 0 bit
if(ishuman(M))
var/mob/living/carbon/human/H = M
var/datum/organ/internal/eyes/E = H.internal_organs["eyes"]
var/datum/organ/internal/eyes/E = H.internal_organs_by_name["eyes"]
if(istype(E))
E.damage = max(E.damage-5 , 0)
M.SetWeakened(0)