From b27c81cea45606ba2746df586c006a1bc1a366d9 Mon Sep 17 00:00:00 2001 From: epCode <64379263+epCode@users.noreply.github.com> Date: Thu, 13 Oct 2022 16:53:01 -0700 Subject: [PATCH] make mobs coordinate attacks with all other similar alliances. --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 49c151a32..87d8d7372 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -2049,7 +2049,7 @@ local monster_attack = function(self) player = obj.object name = obj.name or "" end - if name == self.name and obj.state == "attack" and obj.attack then + if obj.type = self.type and obj.passive == false and obj.state == "attack" and obj.attack then table.insert(blacklist_attack, obj.attack) end end