From c11b738502975f528a57cfd5899f3247c4cc8b48 Mon Sep 17 00:00:00 2001 From: Henri215 <77684085+Henri215@users.noreply.github.com> Date: Sat, 25 Mar 2023 11:41:30 -0300 Subject: [PATCH] IPCs can no longer get fake viruses (#20706) * IPCs can no longer get fake viruses * Update code/modules/events/fake_virus.dm Co-authored-by: Vi3trice <80771500+Vi3trice@users.noreply.github.com> * i command you to compile * using trait virus immune --------- Co-authored-by: Vi3trice <80771500+Vi3trice@users.noreply.github.com> --- code/modules/events/fake_virus.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/events/fake_virus.dm b/code/modules/events/fake_virus.dm index 4da2be32d46..36061e293b0 100644 --- a/code/modules/events/fake_virus.dm +++ b/code/modules/events/fake_virus.dm @@ -1,6 +1,8 @@ /datum/event/fake_virus/start() var/list/fake_virus_victims = list() for(var/mob/living/carbon/human/victim in shuffle(GLOB.player_list)) + if(HAS_TRAIT(victim, TRAIT_VIRUSIMMUNE)) + continue if(victim.stat == DEAD || victim.InCritical() || victim.mind?.assigned_role == victim.mind?.special_role || victim.mind?.offstation_role) continue fake_virus_victims += victim