Skip to content

Commit

Permalink
FIX for Mithocolidde
Browse files Browse the repository at this point in the history
  • Loading branch information
ErdGinalD committed Oct 14, 2024
1 parent 0969880 commit 2f86553
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/modules/surgery/organs/organ_external.dm
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,18 @@ This function completely restores a damaged organ to perfect condition.
surgeryize()
if(is_robotic()) //Robotic organs stay robotic.
status = ORGAN_ROBOT
else if(HAS_TRAIT(owner, TRAIT_I_WANT_BRAINS))
else if(owner && HAS_TRAIT(owner, TRAIT_I_WANT_BRAINS))
status = ORGAN_DEAD
else
status = 0
germ_level = 0
perma_injury = 0
brute_dam = 0
burn_dam = 0
if(!HAS_TRAIT(owner, TRAIT_I_WANT_BRAINS)) // zombies's wounds don't close. Because thats cool.
open = ORGAN_CLOSED //Closing all wounds.
if(owner && !HAS_TRAIT(owner, TRAIT_I_WANT_BRAINS)) // zombies's wounds don't close. Because thats cool.
open = ORGAN_CLOSED
else
open = ORGAN_CLOSED //Closing all wounds for detached limbs.

// handle internal organs
for(var/obj/item/organ/internal/current_organ in internal_organs)
Expand Down

0 comments on commit 2f86553

Please sign in to comment.