From b4f9c979ce035fa09e80239aa56dfb0d164327d5 Mon Sep 17 00:00:00 2001 From: Kylerace Date: Sat, 17 Jul 2021 23:34:21 -0700 Subject: [PATCH] fixes ghosts not being included in get_hearers_in_view(), AGAIN! (#60297) thanks to shaps for reporting this turns out mob/dead/Initialize() doesnt call parent, and mobs are made hearing sensitive in mob/Initialize(), so ghosts yet again werent included in get_hearers_in_view(). now they are! now actually tested this time by attacking pun pun then ghosting, on master the red attack text doesnt show for ghosts in view but now it does with the first pr the issue was because when target was a mob, view() only includes what the mob can see, so i made it always use a turf like it was previously. but the refactor done in the same pr meant that ghosts didnt become hearing sensitive so whoops --- code/modules/mob/dead/dead.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/dead/dead.dm b/code/modules/mob/dead/dead.dm index 4dd04b24e4d..84a500ef476 100644 --- a/code/modules/mob/dead/dead.dm +++ b/code/modules/mob/dead/dead.dm @@ -20,6 +20,7 @@ INITIALIZE_IMMEDIATE(/mob/dead) if(length(CONFIG_GET(keyed_list/cross_server))) add_verb(src, /mob/dead/proc/server_hop) set_focus(src) + become_hearing_sensitive() return INITIALIZE_HINT_NORMAL /mob/dead/canUseStorage()