From f65a4314d11ff87e2b98feaff5383ecfa5be28f2 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Thu, 23 Mar 2023 10:43:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E9=98=9F=E5=A1=94=E8=83=9C=E5=88=A9?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua index 376de773e2..cd1231b042 100644 --- a/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua @@ -302,10 +302,15 @@ function WorldArenaBattleInfoPanel:BindEvent() end end 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) UIManager.OpenPanel(UIName.RewardItemPopup,msg.drop,1) - Game.GlobalEvent:DispatchEvent(GameEvent.FourEle.RefreshView) else UIManager.OpenPanel(UIName.BattleFailPopup, nil, true, nil, BATTLE_TYPE.GodsWayTower)