diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index b17ac1e..4dcd0cd 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -362,7 +362,7 @@ function _M.openTimeBoxRpc(agent, data) local costCount = randomData[gemId .. "_gem_num"] if not costCount then return end - if not role:checkItemEnough({[gemId]] = costCount}) then return end + if not role:checkItemEnough({[gemId] = costCount}) then return end role:costItems({[gemId] = costCount}) boxL[slot].gem = gemId elseif oper == 3 then -- 领取 -- libgit2 0.21.2