From dd7c8d5361a63d0ba5dac9727de89a32126bc317 Mon Sep 17 00:00:00 2001 From: xiejun <467745540@qq.com> Date: Sun, 24 Dec 2023 17:21:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=81=B5=E5=85=BD=E6=B6=88?= =?UTF-8?q?=E8=80=97=E5=90=8E=EF=BC=8C=E5=AF=B9=E6=9C=AC=E5=9C=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/RoleInfo/SpecailTrainingInfoPopup.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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