From a479e1349844dd1f6889f519e40320018cee0d0d Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Fri, 9 Feb 2024 13:16:52 +0300 Subject: [PATCH] [MIRROR] SM cascade warnings only show to players in game (#846) (#1869) * SM cascade warnings only show to players in game (#81343) ## About The Pull Request Fixes https://github.com/tgstation/tgstation/issues/81337 ## Changelog :cl: LT3 fix: SM cascade delam messages no longer display to clients not in game /:cl: * SM cascade warnings only show to players in game --------- Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com> --- .../supermatter/supermatter_delamination/cascade_delam.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/power/supermatter/supermatter_delamination/cascade_delam.dm b/code/modules/power/supermatter/supermatter_delamination/cascade_delam.dm index 5d8cfecaa40..a9c7a87045d 100644 --- a/code/modules/power/supermatter/supermatter_delamination/cascade_delam.dm +++ b/code/modules/power/supermatter/supermatter_delamination/cascade_delam.dm @@ -28,8 +28,7 @@ "Something feels very off.", "A drowning sense of dread washes over you.", ) - for(var/mob/victim as anything in GLOB.player_list) - to_chat(victim, span_danger(pick(messages))) + dispatch_announcement_to_players(span_danger(pick(messages)), should_play_sound = FALSE) return TRUE