diff --git a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua index 5b8c3bcd39..6b6d5b4986 100644 --- a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua @@ -516,7 +516,9 @@ function this.UpdateSingleHeroDatas(heroDId, heroLv, heroStar, breakId, upStarId if heroDatas[heroDId] then heroDatas[heroDId].lv = heroLv heroDatas[heroDId].star = heroStar - heroDatas[heroDId].breakId = breakId + if breakId then + heroDatas[heroDId].breakId = breakId + end heroDatas[heroDId].upStarId = upStarId local actionPowerRormula = gameSetting[1].ActionPowerRormula heroDatas[heroDId].actionPower = diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua index aea330a951..0f038eb975 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua @@ -450,7 +450,7 @@ function RoleUpStarLayout:StarUpClick() end --扣除升星 消耗的材料 更新英雄数据 function RoleUpStarLayout:DeleteUpStarMaterials() - HeroManager.UpdateSingleHeroDatas(curHeroData.dynamicId,curHeroData.oriLv,curHeroData.star+1,curHeroData.breakId,upStarRankUpConfig.Id,true) + HeroManager.UpdateSingleHeroDatas(curHeroData.dynamicId,curHeroData.oriLv,curHeroData.star+1,nil,upStarRankUpConfig.Id,true) HeroManager.UpdateSingleHeroSkillData(curHeroData.dynamicId) for i, v in pairs(heroDatas) do if curHeroData == v then