[英雄技能]====英雄技能显示修改

dev_chengFeng
wangzhenxing 2022-05-19 18:50:16 +08:00
parent fc497645d2
commit 4c4fa444ab
1 changed files with 2 additions and 2 deletions

View File

@ -2471,7 +2471,7 @@ function this.GetCurHeroSidAndCurStarAllSkillDatas2(sid, star)
local allSkillDatas = {}
local skillIndex = 1
local curHeroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, sid)
local heroRankUp = ConfigManager.GetConfigDataByDoubleKey(ConfigName.HeroRankupConfig,"Type",2,"OpenStar",star)
local heroRankUp = ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.HeroRankupConfig,"Type",2,"OpenStar",star)
if curHeroConfig.OpenSkillRules then
for i = 1, #curHeroConfig.OpenSkillRules do
if curHeroConfig.OpenSkillRules[i][1] == star then
@ -2486,7 +2486,7 @@ function this.GetCurHeroSidAndCurStarAllSkillDatas2(sid, star)
end
end
local OpenPassiveSkillRules = star >= this.awakeNextStarIndex and curHeroConfig.Awaken or curHeroConfig.OpenPassiveSkillRules
if OpenPassiveSkillRules then
if OpenPassiveSkillRules and heroRankUp then
local list={}
for i = 1, #OpenPassiveSkillRules do
if OpenPassiveSkillRules[i][1] <=heroRankUp.Id then