[MIRROR] Fix misleading examine messages on the head without body (#1811)

* Detect if ghost reentered the brain (#54975)

* Fix misleading examine messages on the head without body

Co-authored-by: antropod <antropod@gmail.com>
This commit is contained in:
SkyratBot
2020-11-24 11:37:08 +01:00
committed by GitHub
co-authored by antropod
parent 7311492e9b
commit 6a83de709c
+1 -1
View File
@@ -74,7 +74,7 @@
else if(brainmob?.health <= HEALTH_THRESHOLD_DEAD)
. += "<span class='info'>It's leaking some kind of... clear fluid? The brain inside must be in pretty bad shape.</span>"
else if(brainmob)
if(brainmob.get_ghost(FALSE, TRUE))
if(brainmob.key || brainmob.get_ghost(FALSE, TRUE))
. += "<span class='info'>Its muscles are twitching slightly... It seems to have some life still in it.</span>"
else
. += "<span class='info'>It's completely lifeless. Perhaps there'll be a chance for them later.</span>"