Merge branch 'china/dev' of http://60.1.1.230/gaoxin/JL_Client into china/dev

dev_chengFeng
jiaoyangna 2021-04-06 17:42:05 +08:00
commit f6f48149b1
1 changed files with 3 additions and 0 deletions

View File

@ -518,6 +518,9 @@ function this.SetSelectHero(isFirstIn,isFirstData,isMainIn)
end
end
end
table.sort(d,function (a,b)
return HeroManager.GetSingleHeroData(a.heroId).warPower > HeroManager.GetSingleHeroData(b.heroId).warPower
end)
for i, v in ipairs(d) do
if MapTrialManager.selectHeroDid ~= "" then
if MapTrialManager.selectHeroDid==v.heroId and v.heroHp <= 0 then