From 782588b1efe8c67938c80e85a5de62441e846b7f Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Fri, 7 May 2021 11:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A3=AE=E7=BD=97=E5=B9=BB=E5=A2=83?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E6=89=93boss=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E6=81=AD=E5=96=9C=E8=8E=B7=E5=BE=97=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Carbon/CarbonManager.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonManager.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonManager.lua index a736de2259..0680576bba 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonManager.lua @@ -521,7 +521,11 @@ function this.InitQuickFightData(monsterGroupId, eventId, msg) Game.GlobalEvent:DispatchEvent(GameEvent.Map.PointRemove, MapManager.curTriggerPos) elseif this.difficulty == 2 then Game.GlobalEvent:DispatchEvent(GameEvent.Map.PointRemove, MapManager.curTriggerPos) - UIManager.OpenPanel(UIName.RewardItemPopup,data.drop,1,func) + if data.drop and (#data.drop.itemlist > 0 and #data.drop.equipId > 0 and #data.drop.Hero > 0 and #data.drop.soulEquip > 0 and #data.drop.pokemon > 0) then + UIManager.OpenPanel(UIName.RewardItemPopup,data.drop,1,func) + else + func() + end end func = nil -- 试炼副本不能直接结束事件点