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

dev_chengFeng
gaoxin 2021-09-11 15:13:02 +08:00
commit 1c6599c17a
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ function this.GetCanUseHeroDatas()
this.canUseHeroDatas = {}
end
for k,v in pairs(this.heroDataLists) do
if PlayerManager.GetHeroDataByStar(0,v.id) then
if PlayerManager.GetHeroDataByStar(0,v.id) and v.percentHp > 0 then
if not this.canUseHeroDatas[v.dynamicId] then
this.canUseHeroDatas[v.dynamicId] = v
end