From a129e83fd8071376891f5f464946d262b803f8d3 Mon Sep 17 00:00:00 2001 From: Batrachophreno Date: Mon, 1 Jun 2026 17:42:04 -0400 Subject: [PATCH] Analyzer bugfixes (#22575) Fixes health analyzers NOT mounted on hardsuits (handheld, observer) not displaying TGUI on scan due to casting runtime. Fixes unrelated bug with self-scanning not playing nice. --- code/datums/components/medical/medicalAnalyzer.dm | 4 +++- html/changelogs/Bat-Analyzer.yml | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/Bat-Analyzer.yml diff --git a/code/datums/components/medical/medicalAnalyzer.dm b/code/datums/components/medical/medicalAnalyzer.dm index 0a970b2e58f..02610a1e22b 100644 --- a/code/datums/components/medical/medicalAnalyzer.dm +++ b/code/datums/components/medical/medicalAnalyzer.dm @@ -88,7 +88,7 @@ var/obj/item/rig_module/containing_rig_module = owner.loc if(!containing_rig_module) return ..() - if(containing_rig_module?.holder?.wearer == user) + else if(containing_rig_module) return UI_INTERACTIVE return UI_CLOSE @@ -113,6 +113,8 @@ user.visible_message("\The [user] stops scanning \the [target_mob].") /datum/component/health_analyzer/proc/attack_self(mob/user) + if(scan_title == "" || scan_title == null) + health_scan_mob(user, user, FALSE, sound_scan = sound_scan) ui_interact(user) owner.add_fingerprint(user) diff --git a/html/changelogs/Bat-Analyzer.yml b/html/changelogs/Bat-Analyzer.yml new file mode 100644 index 00000000000..e2f1bb926b0 --- /dev/null +++ b/html/changelogs/Bat-Analyzer.yml @@ -0,0 +1,5 @@ +author: Batrachophrenoboocosmomachia +delete-after: True +changes: + - bugfix: "Fixes non-hardsuit health analyzer runtime." + - bugfix: "Fixes hardsuit health analyzer not reliably self-scanning."