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.
This commit is contained in:
Batrachophreno
2026-06-01 21:42:04 +00:00
committed by GitHub
parent dab83fc0c0
commit a129e83fd8
2 changed files with 8 additions and 1 deletions
@@ -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)