mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user