mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
[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:
@@ -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
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user