队伍顺序

back_recharge
jiahuiwen 2019-04-20 17:21:45 +08:00
parent 0d308bc58c
commit 5e9f8a9520
1 changed files with 2 additions and 2 deletions

View File

@ -283,13 +283,13 @@ function BattleLogic.CurFrame()
return curFrame
end
function BattleLogic.Query(func)
function BattleLogic.Query(func, inCludeDeadRole)
local list = {}
local index = 1
if func then
for i=1, objList.size do
local v = objList.vList[i]
if func(v) and not v.isDead then
if func(v) and (inCludeDeadRole or not v.isDead) then
list[index] = v
index = index + 1
end