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>
This commit is contained in:
Henri215
2023-03-25 14:41:30 +00:00
committed by GitHub
co-authored by Vi3trice
parent c596e415de
commit c11b738502
+2
View File
@@ -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