多对塔开战添加阵容判断,相同英雄判断 同bt

(cherry picked from commit 793fc3a5bc)
tcx_xiyou_bt_ios
wangzhenxing 2024-05-17 18:43:16 +08:00
parent 97ea316699
commit 4bb74a24f0
1 changed files with 15 additions and 3 deletions

View File

@ -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