parent
18999a02ce
commit
6a3f8748c3
|
@ -58,7 +58,7 @@ function this.GetHeroList(proId)
|
|||
local allHero={}
|
||||
for i = 1,#currHeros do
|
||||
local hero = currHeros[i]
|
||||
if hero and (hero.heroConfig.PropertyName==JumpServerManager.arenaType or hero.heroConfig.PropertyName==5) then
|
||||
if hero and (hero.heroConfig.PropertyName==proType or hero.heroConfig.PropertyName==5) then
|
||||
table.insert(allHero,hero)
|
||||
end
|
||||
end
|
||||
|
@ -78,7 +78,7 @@ function this.GetOneKeyUpHeroList()
|
|||
local num=0
|
||||
for i = 1,#currHeros do
|
||||
local hero = currHeros[i]
|
||||
if hero and (hero.heroConfig.PropertyName==JumpServerManager.arenaType or (hero.heroConfig.PropertyName==5 and num<=limitNum)) then
|
||||
if hero and (hero.heroConfig.PropertyName==proType or (hero.heroConfig.PropertyName==5 and num<=limitNum)) then
|
||||
if hero.heroConfig.PropertyName==5 then
|
||||
num=num+1
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue