diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index db371e2..392f485 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -640,6 +640,7 @@ function _M.openTimeBoxRpc(agent, data) end if role:getItemCount(costId) < count then return 8 end + if not role:checkItemEnough(costs) then return 9 end role:costItems({[costId] = count}, {log = {desc = "openTimeBox"}}) -- libgit2 0.21.2