Fixed the last word pop up window instantly killing you if you are fu… (#26507)

* Fixed the last word pop up window instantly killing you if you are full health

* Update code/modules/mob/living/living.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Blossom
2024-08-19 17:26:31 +02:00
committed by GitHub
parent 7ea7172fb2
commit 348d45f561
+4 -1
View File
@@ -306,7 +306,10 @@
if(stat == DEAD)
// cancel em out if they died while they had the message box up
last_words = null
if(health >= HEALTH_THRESHOLD_CRIT)
to_chat(src, "<span class='warning'>You are unable to succumb to death! This life continues!</span>")
last_words = null
return
if(!isnull(last_words))
create_log(MISC_LOG, "gave their final words, [last_words]")
src.last_words = last_words // sorry