diff --git a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua index 5ad3c0b57d..bb366b5dd8 100644 --- a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua @@ -288,7 +288,7 @@ function this.AddPotentialDataByType(dyn,type,lv) if heroDatas[dyn] then heroDatas[dyn].potential[type]={} heroDatas[dyn].potential[type].lv=lv - heroDatas[dyn].potential[type].giftLv=0 + heroDatas[dyn].potential[type].giftLv=GiftManager.GetHeroPotencyLvById(dyn) end end @@ -660,6 +660,10 @@ function this.GetAllHeroDataMsinusUpWar(_sortTypeId,type) --0全部 1-6属性 7 if HarmonyManager:IsEnvoy(v.dynamicId) then heros[i].isHarmonyGongMing = 2 end + heros[i].isTrain=0 + if TrainBuildManager.CheckHeroIsTraining(v.dynamicId) then + heros[i].isTrain=1 + end end end --所有的所在队伍id, @@ -792,6 +796,7 @@ function this.DeleteHeroDatas(heroDIds) --装备的法灵 FaLingManager.SetEquipBelongHero(heroDatas[heroDIds[i]].baublesId,nil) HeroManager.SetHeroBaublesId(heroDIds[i],"") + TrainBuildManager.RemoveTrainHero(heroDIds[i]) --删除英雄 heroDatas[heroDIds[i]] = nil end