Fixes slimes not attacking anybody

This commit is contained in:
XDTM
2018-01-20 02:29:21 +01:00
committed by CitadelStationBot
parent d1487e1c65
commit b13be9240c
@@ -339,6 +339,19 @@
if(L in Friends) // No eating friends!
continue
<<<<<<< HEAD
=======
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
>>>>>>> 389e21e... Fixes slimes not attacking anybody (#34667)
if(issilicon(L) && (rabid || attacked)) // They can't eat silicons, but they can glomp them in defence
targets += L // Possible target found!