From a2726648ffe04ca2f7e6b4735102c010a794fa84 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Thu, 23 Mar 2023 16:57:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E9=98=9F=E5=A1=94=E6=88=98=E6=96=97?= =?UTF-8?q?=E5=88=A4=E5=AE=9A=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua index cd1231b042..f4f9e20487 100644 --- a/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/WorldArena/GodsWayBattleInfoPanel.lua @@ -303,12 +303,12 @@ function WorldArenaBattleInfoPanel:BindEvent() end LogError("winnum==="..winNum) local isWin=false - if type==1 then + if curType==1 then isWin=winNum==2 - elseif type==2 then + elseif curType==2 then isWin=winNum==3 end - if isWin and msg.drop then + if isWin then GodsWayTowerManager.SetTowerFloorByType(curType,1) UIManager.OpenPanel(UIName.RewardItemPopup,msg.drop,1) Game.GlobalEvent:DispatchEvent(GameEvent.FourEle.RefreshView)