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