1
0
Fork 0

Fix summoning friends for mobs

This commit is contained in:
gldrk 2023-01-14 01:28:35 +03:00
parent dd15092052
commit 3697ef8069
1 changed files with 1 additions and 1 deletions

View File

@ -776,7 +776,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
obj:do_attack(hitter) obj:do_attack(hitter)
elseif type(obj.group_attack) == "table" then elseif type(obj.group_attack) == "table" then
for i=1, #obj.group_attack do for i=1, #obj.group_attack do
if obj.name == obj.group_attack[i] then if obj.group_attack[i] == self.name then
obj._aggro = true obj._aggro = true
obj:do_attack(hitter) obj:do_attack(hitter)
break break