From 27d3a9276918cf4fb5e9032b2161aabb30f41531 Mon Sep 17 00:00:00 2001 From: CloudJ Date: Tue, 30 May 2023 15:26:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8A=BD=E5=8D=A1=E8=B4=A7?= =?UTF-8?q?=E5=B8=81=E6=A3=80=E6=B5=8B=E5=88=A4=E5=AE=9A=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/shop/box_hero_ui.lua | 2 +- lua/app/ui/shop/cell/box_sell_cell.lua | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lua/app/ui/shop/box_hero_ui.lua b/lua/app/ui/shop/box_hero_ui.lua index b001c724..b7ca62ae 100644 --- a/lua/app/ui/shop/box_hero_ui.lua +++ b/lua/app/ui/shop/box_hero_ui.lua @@ -103,7 +103,7 @@ function BoxHeroUI:onClickSummon() if GFunc.checkCost(costItem.id, costItem.num, false) then ModuleManager.SummonManager:summon(self.summonType, 1) self:closeUI() - elseif GFunc.checkCost(cost.id, cost.num, false) then + elseif GFunc.checkCost(cost.id, cost.num, true) then ModuleManager.SummonManager:summon(self.summonType, 2) self:closeUI() end diff --git a/lua/app/ui/shop/cell/box_sell_cell.lua b/lua/app/ui/shop/cell/box_sell_cell.lua index 2b1a4aaf..60064328 100644 --- a/lua/app/ui/shop/cell/box_sell_cell.lua +++ b/lua/app/ui/shop/cell/box_sell_cell.lua @@ -116,13 +116,6 @@ function BoxSellCell:refreshCost() end function BoxSellCell:onClickBox(summonType) - local costItem, cost = DataManager.SummonData:getSummonCost(summonType) - if not GFunc.checkCost(costItem.id, costItem.num, false) then - if not GFunc.checkCost(cost.id, cost.num, true) then - return - end - end - ModuleManager.ShopManager:showBoxHeroUI(summonType) end