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