From 2be19a15ba3b78e89dcc4d77d62a789b3ad00eaf Mon Sep 17 00:00:00 2001 From: cib Date: Mon, 6 Aug 2012 13:28:02 -0700 Subject: [PATCH] Minor bugfix to new organs. --- code/modules/mob/organ/organ.dm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/organ/organ.dm b/code/modules/mob/organ/organ.dm index 7beb047b609..1e01c655a2b 100644 --- a/code/modules/mob/organ/organ.dm +++ b/code/modules/mob/organ/organ.dm @@ -595,14 +595,15 @@ var/size = min( max( 1, damage/10 ) , 6) // first check whether we can widen an existing wound - if((type == CUT || type == BRUISE) && damage >= 5) - var/datum/wound/W = pick(wounds) - if(W.started_healing()) - damage -= 5 - W.open_wound() - owner.visible_message("\red The wound on [owner.name]'s [display_name] widens with a nasty ripping voice.",\ - "\red The wound on your [display_name] widens with a nasty ripping voice.",\ - "You hear a nasty ripping noise, as if flesh is being torn apart.") + if(wounds.len > 0) + if((type == CUT || type == BRUISE) && damage >= 5) + var/datum/wound/W = pick(wounds) + if(W.started_healing()) + damage -= 5 + W.open_wound() + owner.visible_message("\red The wound on [owner.name]'s [display_name] widens with a nasty ripping voice.",\ + "\red The wound on your [display_name] widens with a nasty ripping voice.",\ + "You hear a nasty ripping noise, as if flesh is being torn apart.") if(damage == 0) return