【战斗】=========目标选择逻辑修改
parent
5906482cca
commit
6279110ddd
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue