From fcb9a070e823a181ec86f6e296c1b488e8894c39 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Thu, 30 Dec 2021 16:25:35 +0800 Subject: [PATCH] fix: costItem 消耗等于0的商品允许购买 --- src/models/RolePlugin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 95c996d..1697792 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -444,7 +444,7 @@ function RolePlugin.bind(Role) function Role:costItems(itemCountT, params) local pms = clone(params or {}) for _, v in pairs(itemCountT) do - if v <= 0 then return false end + if v < 0 then return false end end if itemCountT[ItemId.Diamond] then --优先扣除钻石 -- libgit2 0.21.2