[MIRROR] Fixes runtime when ghosts press the deathgasp emote hotkey [MDB IGNORE] (#16796)

* Fixes runtime when ghosts press the deathgasp emote hotkey (#70334)

The following runtime has occurred 1 time(s).
runtime error: undefined variable /mob/dead/observer/var/death_message
proc name: run emote (/datum/emote/living/deathgasp/run_emote)
  source file: emote.dm,119
  usr: Jimmy Little (/mob/dead/observer)
  src: /datum/emote/living/deathgasp (/datum/emote/living/deathgasp)

#69007 removed the living sanity check.

* Fixes runtime when ghosts press the deathgasp emote hotkey

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-10-12 00:24:34 -04:00
committed by GitHub
co-authored by ShizCalev
parent 8c263623f2
commit bbef690c12
+2
View File
@@ -117,6 +117,8 @@
stat_allowed = HARD_CRIT
/datum/emote/living/deathgasp/run_emote(mob/living/user, params, type_override, intentional)
if(!is_type_in_typecache(user, mob_type_allowed_typecache))
return
if(user.death_message)
message_simple = user.death_message
. = ..()