diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua b/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua index 50485fdcb9..36260e618c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua @@ -67,6 +67,7 @@ function FormationEditPopup:BindEvent() for i, v in ipairs(choosedList) do table.insert(dids,v.did) end + if #choosedList <= maxNum and #choosedList > 0 then NetManager.TrialHeroInfoSaveRequest(dids,function() PopupTipPanel.ShowTip(Language[10669]) if func~=nil then --保存完毕后 将英雄did合集传递过去 此时我拥有这些英雄 不用担心英雄已被删除 @@ -74,9 +75,12 @@ function FormationEditPopup:BindEvent() end self:ClosePanel() end) + else + PopupTipPanel.ShowTip("编队不能为空") + end end - if #choosedList 0 then MsgPanel.ShowTwo(Language[10670], nil, function() go() end)