Merge branch 'master_xma_local' of http://60.1.1.230/gaoxin/JL_Client into master_xma_local
commit
af915fb480
|
@ -5367,8 +5367,17 @@ local passivityList = {
|
||||||
end
|
end
|
||||||
local list = RoleManager.Query(function(v) return v.camp ~= role.camp end)
|
local list = RoleManager.Query(function(v) return v.camp ~= role.camp end)
|
||||||
list=BattleUtil.SortByProp(list, RoleDataName.Hp, 1)
|
list=BattleUtil.SortByProp(list, RoleDataName.Hp, 1)
|
||||||
if list and list[1] then
|
--获取主目标
|
||||||
BattleUtil.RandomControl(pro2*num, con, role,list[1],time)
|
local targets=skill:GetDirectTargets()
|
||||||
|
local aaa=nil
|
||||||
|
for key, value in pairs(list) do
|
||||||
|
if value and not BattleUtil.ChecklistIsContainValue(list,value) then
|
||||||
|
aaa=value
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if aaa then
|
||||||
|
BattleUtil.RandomControl(pro2*num, con, role,aaa,time)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue