Merge branch 'master_xma_local' of http://60.1.1.230/gaoxin/JL_Client into master_xma_local

dev_chengFeng
gaoxin 2020-11-14 17:37:42 +08:00
commit af915fb480
1 changed files with 11 additions and 2 deletions

View File

@ -5367,8 +5367,17 @@ local passivityList = {
end
local list = RoleManager.Query(function(v) return v.camp ~= role.camp end)
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