调整抽卡货币检测判定位置

This commit is contained in:
CloudJ 2023-05-30 15:26:53 +08:00
parent a828972f43
commit 27d3a92769
2 changed files with 1 additions and 8 deletions

View File

@ -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

View File

@ -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