Commit 29f01196c39cd9b32a5ead03e9246a23a347f838
1 parent
292846cb
fix: costItem 消耗等于0的商品允许购买
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/models/RolePlugin.lua
... | ... | @@ -444,7 +444,7 @@ function RolePlugin.bind(Role) |
444 | 444 | function Role:costItems(itemCountT, params) |
445 | 445 | local pms = clone(params or {}) |
446 | 446 | for _, v in pairs(itemCountT) do |
447 | - if v <= 0 then return false end | |
447 | + if v < 0 then return false end | |
448 | 448 | end |
449 | 449 | |
450 | 450 | if itemCountT[ItemId.Diamond] then --优先扣除钻石 | ... | ... |