diff --git a/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua index 7c2e374e64..0688e5a07d 100644 --- a/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua @@ -264,8 +264,7 @@ function WorldArenaBattleInfoPanel:BindEvent() self:ClosePanel() return end - -- 动画中不能再执行 - state=2 + if isAnim then LogError("正在播放动画") return @@ -274,11 +273,24 @@ function WorldArenaBattleInfoPanel:BindEvent() PopupTipPanel.ShowTip("编队为空,无法挑战") return end - + local teamNum=0 + if curType==1 then + teamNum=2 + elseif curType==2 then + teamNum=3 + end + for i=1,teamNum do + if not leftAllTeam[i] or #leftAllTeam[i]==0 then + PopupTipPanel.ShowTip("编队为空,无法挑战") + return + end + end if isSame then PopupTipPanel.ShowTip("检测到多个阵容使用相同神将,无法开战") return end + -- 动画中不能再执行 + state=2 floor=GodsWayTowerManager.GetTowerFloorByType(curType) NetManager.RequestDuoDuiChallenge(curType,floor+1,1,function(msg) resultList=msg.result