From fd3daa53ef49d48ff905a4f9601f6099a6dfbef4 Mon Sep 17 00:00:00 2001 From: Guti Date: Sun, 12 Jan 2025 02:20:57 +0100 Subject: [PATCH] The mobs, Guti. THE MOBS. --- .../mob/living/simple_mob/subtypes/vore/macrophage.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/macrophage.dm b/code/modules/mob/living/simple_mob/subtypes/vore/macrophage.dm index c9d114180b..8235ee4dc7 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/macrophage.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/macrophage.dm @@ -135,8 +135,9 @@ var/list/our_targets = ..() var/mob/living/simple_mob/vore/aggressive/macrophage/macrophage = holder for(var/list_target in our_targets) - if(our_targets.viruses) - if(our_targets.HasDisease(macrophage.base_disease) && prob(75)) // Less likely to be a target if you're infected + var/mob/living/victim = list_target + if(victim.viruses) + if(victim.HasDisease(macrophage.base_disease) && prob(75)) // Less likely to be a target if you're infected our_targets -= list_target continue return our_targets