【战斗】=========目标选择逻辑修改

dev_chengFeng
wangzhenxing 2021-11-29 16:07:32 +08:00
parent 5906482cca
commit 6279110ddd
1 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,9 @@ end
-- 根据属性排序
function BattleUtil.SortByProp(arr, prop, sort)
if sort==0 then
return arr
end
BattleUtil.Sort(arr, function(a, b)
local r1 = a:GetRoleData(prop)
local r2 = b:GetRoleData(prop)