From 165c8650a7eeaf8aa89b6c0011af0aab122cc19c Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 10 May 2021 16:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=81=AD=E5=96=9C=E8=8E=B7=E5=BE=97?= =?UTF-8?q?=E3=80=91=E8=83=8C=E5=8C=85=E5=B7=B2=E6=BB=A1=E4=BC=9A=E5=BC=B9?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E6=81=AD=E5=96=9C=E8=8E=B7=E5=BE=972?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua index fc380372d6..773d5c6cf6 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua @@ -125,9 +125,9 @@ function RewardItemPopup:OnOpen(...) else showHero = true end - --如果没有compShowType和Drop - if not args[4] and not drop then - LogYellow("没有奖励没有类型,直接关闭") + --如果没有compShowType和Drop--背包已满 + if not args[4] and (not drop or (#drop.itemlist < 1 and #drop.equipId < 1 and #drop.Hero < 1 and #drop.soulEquip < 1 and #drop.pokemon < 1)) then + self:ClosePanel() return end local haveRecord = BattleRecordManager.isHaveRecord()