多队塔胜利条件修改

dev_chengFeng
wangzhenxing 2023-03-23 10:43:53 +08:00
parent 1fa9ba8050
commit f65a4314d1
1 changed files with 7 additions and 2 deletions

View File

@ -302,10 +302,15 @@ function WorldArenaBattleInfoPanel:BindEvent()
end end
end end
LogError("winnum==="..winNum) LogError("winnum==="..winNum)
if winNum>=2 and msg.drop then local isWin=false
if type==1 then
isWin=winNum==2
elseif type==2 then
isWin=winNum==3
end
if isWin and msg.drop then
GodsWayTowerManager.SetTowerFloorByType(curType,1) GodsWayTowerManager.SetTowerFloorByType(curType,1)
UIManager.OpenPanel(UIName.RewardItemPopup,msg.drop,1) UIManager.OpenPanel(UIName.RewardItemPopup,msg.drop,1)
Game.GlobalEvent:DispatchEvent(GameEvent.FourEle.RefreshView) Game.GlobalEvent:DispatchEvent(GameEvent.FourEle.RefreshView)
else else
UIManager.OpenPanel(UIName.BattleFailPopup, nil, true, nil, BATTLE_TYPE.GodsWayTower) UIManager.OpenPanel(UIName.BattleFailPopup, nil, true, nil, BATTLE_TYPE.GodsWayTower)