修改灵兽消耗后,对本地数据的处理

TCX_dev_realOne_master hotfix/you_gu/cdn_realOneTest_and/1.1.17
xiejun 2023-12-24 17:21:36 +08:00
parent 086c183046
commit dd7c8d5361
1 changed files with 6 additions and 2 deletions

View File

@ -294,7 +294,8 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
PopupTipPanel.ShowTip(Language[12268])
return
end
if tData.Level<=curLevel then
if tData.Level<=curLevel then
if #selectSkillUnlockItems1==0 or #selectSkillUnlockItems2==0 then
PopupTipPanel.ShowTip(Language[10054])
@ -332,7 +333,10 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
local magicSoldierIds={}
magicSoldierIds[1]=""
NetManager.TrainingUnlockSkillRequest( self._curHerodata.dynamicId,tData.Id,pokemenons,nil,TrainingUnlockSkillHeroItem,item,function (msg)
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
if pokemenons and #pokemenons>0 then
PokemonManager.RemovePokemonData(pokemenons)
end
end)
end
end