Fixes IPCs instantly dying of braindeath (#7480)

title, shame we can't do the same about their players HEY-O -- Fixes #7479

sorry @NonQueueingMatt for kicking over your code but I did what must be done (and I guess this is a better fate than PR reverting)
This commit is contained in:
JohnWildkins
2019-11-22 06:10:52 -05:00
committed by Erki
parent 7bd795046a
commit 6c4a7b03ba
2 changed files with 7 additions and 1 deletions

View File

@@ -1408,7 +1408,7 @@
/mob/living/carbon/human/has_brain()
if(internal_organs_by_name[BP_BRAIN])
var/obj/item/organ/internal/brain = internal_organs_by_name[BP_BRAIN]
var/obj/item/organ/brain = internal_organs_by_name[BP_BRAIN] // budget fix until MMIs and stuff get made internal or you think of a better way, sorry matt
if(brain && istype(brain))
return 1
return 0