Fix health analyzer not showing missing heart (#2473)

## About The Pull Request

Early pull of https://github.com/tgstation/tgstation/pull/87109

Closes https://github.com/Bubberstation/Bubberstation/issues/2472

## Why It's Good For The Game

🆑 LT3
fix: Medical should again be able to tell if your heart is missing,
hopefully
/🆑
This commit is contained in:
LT3
2024-11-18 12:13:51 -05:00
committed by GitHub
parent d7e706e9b2
commit 4d22f29b6e
@@ -283,7 +283,7 @@
var/list/missing_organs = list()
if(!humantarget.get_organ_slot(ORGAN_SLOT_BRAIN))
missing_organs[ORGAN_SLOT_BRAIN] = "Brain"
if(!humantarget.needs_heart() && !humantarget.get_organ_slot(ORGAN_SLOT_HEART))
if(humantarget.needs_heart() && !humantarget.get_organ_slot(ORGAN_SLOT_HEART))
missing_organs[ORGAN_SLOT_HEART] = "Heart"
if(!HAS_TRAIT_FROM(humantarget, TRAIT_NOBREATH, SPECIES_TRAIT) && !isnull(humantarget.dna.species.mutantlungs) && !humantarget.get_organ_slot(ORGAN_SLOT_LUNGS))
missing_organs[ORGAN_SLOT_LUNGS] = "Lungs"