Fix random crash with mixed mob ally data types
parent
408296140a
commit
0895666407
|
@ -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._cmi_is_mob and detected_mob.state ~= "attack" and detected_mob.owner ~= name then
|
||||||
if detected_mob.name == self.name then
|
if detected_mob.name == self.name then
|
||||||
turn_hostile(self,detected_mob)
|
turn_hostile(self,detected_mob)
|
||||||
elseif type(detected_mob.group_attack) == "table" then
|
else
|
||||||
for _,id in pairs(self.group_attack) do
|
for _,id in pairs(friends_list) do
|
||||||
if detected_mob.name == id then
|
if detected_mob.name == id then
|
||||||
turn_hostile(self,detected_mob)
|
turn_hostile(self,detected_mob)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue