From fcdb002e0f357ac3cdfdc126fed67032a27e34b2 Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Tue, 10 Jun 2025 14:35:47 -0700 Subject: [PATCH] [MIRROR] Fixes dormant diseases showing up in Medical scanners (#11042) Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> --- code/datums/diseases/_MobProcs.dm | 5 +++++ code/game/machinery/adv_med.dm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/datums/diseases/_MobProcs.dm b/code/datums/diseases/_MobProcs.dm index cfc56d3117..706d048a22 100644 --- a/code/datums/diseases/_MobProcs.dm +++ b/code/datums/diseases/_MobProcs.dm @@ -23,6 +23,11 @@ return FALSE return TRUE +/mob/proc/isInfective() + if(isemptylist(GetSpreadableViruses())) + return FALSE + return TRUE + /mob/proc/CanContractDisease(datum/disease/D) if(stat == DEAD && !global_flag_check(D.virus_modifiers, SPREAD_DEAD)) return FALSE diff --git a/code/game/machinery/adv_med.dm b/code/game/machinery/adv_med.dm index bb88a32d27..60d48fbfab 100644 --- a/code/game/machinery/adv_med.dm +++ b/code/game/machinery/adv_med.dm @@ -196,7 +196,7 @@ occupantData["health"] = H.health occupantData["maxHealth"] = H.getMaxHealth() - occupantData["hasVirus"] = H.IsInfected() + occupantData["hasVirus"] = H.isInfective() occupantData["bruteLoss"] = H.getBruteLoss() occupantData["oxyLoss"] = H.getOxyLoss()