0
0
Fork 0

Fix random crash with mixed mob ally data types

This commit is contained in:
jordan4ibanez 2021-04-22 23:36:58 -04:00
parent 408296140a
commit 0895666407
1 changed files with 2 additions and 2 deletions

View File

@ -153,8 +153,8 @@ mobs.group_attack_initialization = function(self)
if detected_mob._cmi_is_mob and detected_mob.state ~= "attack" and detected_mob.owner ~= name then
if detected_mob.name == self.name then
turn_hostile(self,detected_mob)
elseif type(detected_mob.group_attack) == "table" then
for _,id in pairs(self.group_attack) do
else
for _,id in pairs(friends_list) do
if detected_mob.name == id then
turn_hostile(self,detected_mob)
break