diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua index 708a4d418e..564654e83e 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua @@ -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