diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleAwakeLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleAwakeLayout.lua index fe2e46c508..6ab6e02ba7 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleAwakeLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleAwakeLayout.lua @@ -254,7 +254,13 @@ function RoleAwakeLayout:AutoSelectUpStarHeroList(_curUpStarData) and curHeroData.heroConfig.Qualiy ~= 3) then if LengthOfTable(upStarHeroListData.heroList) >= curUpStarData[i].upStarData[4] then for i = 1, curUpStarData[i].upStarData[4] do - if upStarHeroListData.heroList[i].type == RoleUpStarMatType.item or upStarHeroListData.heroList[i].type == RoleUpStarMatType.hero and upStarHeroListData.heroList[i].lockState == 0 and upStarHeroListData.heroList[i].isFormation == "" then + if upStarHeroListData.heroList[i].type == RoleUpStarMatType.item + or upStarHeroListData.heroList[i].type == RoleUpStarMatType.hero + and upStarHeroListData.heroList[i].lockState == 0 + and upStarHeroListData.heroList[i].isFormation == "" + and not HarmonyManager.IsChangeColor(upStarHeroListData.heroList[i].dynamicId) + and not HarmonyManager:IsEnvoy(upStarHeroListData.heroList[i].dynamicId) + then table.insert(curSelectHeroList,upStarHeroListData.heroList[i]) end end