【魂印战力计算】bug

dev_chengFeng
zhangqiang 2021-04-13 16:34:30 +08:00
parent 3e6d68ee34
commit 0e8f87f32e
1 changed files with 7 additions and 4 deletions

View File

@ -1045,6 +1045,7 @@ local function CalculateSoulPrintAddVal(_heroId)
local curHeroData = HeroManager.GetSingleHeroData(_heroId)
if curHeroData then
if(table.nums(curHeroData.soulPrintList) >= 1) then
local curAllPassiveSkillIds = {}
for i = 1, #curHeroData.soulPrintList do
local cursoulPrintConfig = equipConfig[curHeroData.soulPrintList[i].equipId]
if cursoulPrintConfig then
@ -1060,12 +1061,14 @@ local function CalculateSoulPrintAddVal(_heroId)
end
end
--被动技能计算
if cursoulPrintConfig.PassiveSkill then
--单体加成 --单体等级限制加成 --团体加成 --减乘
singleHeroProVal,lvProVal,allHeroProVal,specialProVal = this.CalculatePassiveSkillsValList(WarPowerType.SoulPrint,cursoulPrintConfig.PassiveSkill)
end
if cursoulPrintConfig.PassiveSkill and #cursoulPrintConfig.PassiveSkill > 0 then
for i = 1, #cursoulPrintConfig.PassiveSkill do
table.insert(curAllPassiveSkillIds,cursoulPrintConfig.PassiveSkill[i])
end
end
end
end
singleHeroProVal,lvProVal,allHeroProVal,specialProVal = this.CalculatePassiveSkillsValList(WarPowerType.SoulPrint,curAllPassiveSkillIds)
end
end
if singleHeroProVal and LengthOfTable(singleHeroProVal) > 0 then