[战斗]======目标选择逻辑添加空判断

dev_chengFeng
wangzhenxing 2022-04-24 11:38:41 +08:00
parent 1114c62c97
commit fed9afed62
1 changed files with 5 additions and 3 deletions

View File

@ -451,9 +451,11 @@ function BattleUtil.ChooseTarget(role, chooseId,queryType)
if aaa~=nil then
--LogError(aaa.position)
end
aaa.isRealDead=false
arr={}
table.insert(arr,aaa)
if aaa then
aaa.isRealDead=false
arr={}
table.insert(arr,aaa)
end
-- return aaa
elseif chooseWeight ==16 then --(血量百分比 含不灭)
BattleUtil.SortByHpFactor(arr, sort)