diff --git a/Assets/ManagedResources/~Lua/Modules/Resolve/View/Resolve_Pokemon.lua b/Assets/ManagedResources/~Lua/Modules/Resolve/View/Resolve_Pokemon.lua index 8cc7ae9f46..97906acbd6 100644 --- a/Assets/ManagedResources/~Lua/Modules/Resolve/View/Resolve_Pokemon.lua +++ b/Assets/ManagedResources/~Lua/Modules/Resolve/View/Resolve_Pokemon.lua @@ -124,9 +124,10 @@ function this:BindEvent() --升星消耗 local lingshouConfig=ConfigManager.GetConfigData(ConfigName.SpiritAnimal,value.id) local haveNum=0 + if value.star>0 then local starConfig=ConfigManager.GetConfigDataByDoubleKey(ConfigName.SpiritAnimalStar,"Star",value.star,"Quality",value.quality) - if starConfig then + if starConfig then haveNum=starConfig.SumItemNum local starMatrs=starConfig.SumConsume --消耗材料 @@ -142,7 +143,7 @@ function this:BindEvent() allCoin=allCoin+lingshouConfig.CoinReturn[2]*(haveNum+1) end --加上所有的分解币 - table.insert(allMaterials,{1203,allCoin}) + table.insert(allMaterials,{1205,allCoin}) else--灵兽碎片 local itemConfig=ConfigManager.GetConfigData(ConfigName.ItemConfig,selectChipId) if itemConfig then @@ -351,8 +352,8 @@ function this.SingleHeroDataShow(go,_heroData,isGray) return end choosed:SetActive(true) - selectHeroData[heroData.dynamicId]=heroData - this.selectText.text = Language[11775]..LengthOfTable(selectHeroData).."/"..maxSelectNum + selectHeroData[heroData.dynamicId]=heroData + this.selectText.text = Language[11775]..LengthOfTable(selectHeroData).."/"..maxSelectNum --如果选中灵兽的数量为最大 if LengthOfTable(selectHeroData)==maxSelectNum then PopupTipPanel.ShowTip(string.format(Language[12396],maxSelectNum))