From 4dba89a288bb155a8db05590f6ab54cd99a8b8a7 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Sat, 8 Mar 2014 03:38:30 +0400 Subject: [PATCH] Fix for #4542 Now synthetics do not contract viruses --- code/modules/virus2/helpers.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/virus2/helpers.dm b/code/modules/virus2/helpers.dm index 520f7931ec..0c95af7e09 100644 --- a/code/modules/virus2/helpers.dm +++ b/code/modules/virus2/helpers.dm @@ -65,7 +65,10 @@ proc/airborne_can_reach(turf/source, turf/target) // if one of the antibodies in the mob's body matches one of the disease's antigens, don't infect if(M.antibodies & disease.antigen != 0) return - + if(istype(M,/mob/living/carbon/human)) + var/mob/living/carbon/human/H = M + if (H.species.flags & IS_SYNTHETIC) + return // log_debug("Infecting [M]") if(prob(disease.infectionchance) || forced)