From e02d7ae786a84927f8db1a07798a183dc2756352 Mon Sep 17 00:00:00 2001 From: LetterJay Date: Sun, 21 Jan 2018 14:14:19 -0600 Subject: [PATCH] Update life.dm --- .../modules/mob/living/simple_animal/slime/life.dm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/simple_animal/slime/life.dm b/code/modules/mob/living/simple_animal/slime/life.dm index d2f743d69b..b27e464898 100644 --- a/code/modules/mob/living/simple_animal/slime/life.dm +++ b/code/modules/mob/living/simple_animal/slime/life.dm @@ -338,12 +338,14 @@ if(L in Friends) // No eating friends! continue - var/ally = FALSE - for(var/F in faction) - if(F == "neutral") //slimes are neutral so other mobs not target them, but they can target neutral mobs - if(F in L.faction) - ally = TRUE - break + + var/ally = FALSE + for(var/F in faction) ++ if(F == "neutral") //slimes are neutral so other mobs not target them, but they can target neutral mobs ++ continue + if(F in L.faction) + ally = TRUE + break if(ally) continue if(issilicon(L) && (rabid || attacked)) // They can't eat silicons, but they can glomp them in defence