From 0fe526aa9139a260bda4cd2c043016c8e80e0f5c Mon Sep 17 00:00:00 2001 From: Chinsky Date: Thu, 15 Nov 2012 18:04:54 +0400 Subject: [PATCH] Fixed something with artifacts. I have no idea what but it was broken and now is fixed. Possibly runtime, most likely just artifact's effect is not working on any organ. --- code/modules/research/xenoarchaeology/artifact_effect.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/modules/research/xenoarchaeology/artifact_effect.dm b/code/modules/research/xenoarchaeology/artifact_effect.dm index 87857e2beb3..34f1df0619a 100644 --- a/code/modules/research/xenoarchaeology/artifact_effect.dm +++ b/code/modules/research/xenoarchaeology/artifact_effect.dm @@ -60,10 +60,8 @@ user << "\blue You feel a soothing energy invigorate you." var/mob/living/carbon/human/H = user - for(var/A in H.organs) - var/datum/organ/external/affecting = null - if(!H.organs[A]) continue - affecting = H.organs[A] + for(var/datum/organ/external/affecting in H.organs) + if(!affecting) continue if(!istype(affecting, /datum/organ/external)) continue affecting.heal_damage(25, 25) //fixes getting hit after ingestion, killing you when game updates organ health //user:heal_organ_damage(25, 25)