[战斗] 268 被动效果修改

dev_chengFeng
wangzhenxing 2020-11-14 17:32:09 +09:00
parent e6ac0a8845
commit d64ed5e92d
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