调整抽卡货币检测判定位置
This commit is contained in:
parent
a828972f43
commit
27d3a92769
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user