Commit e5c60a40be3cafa2a43560d03502a60ba28abd80

Authored by 熊润斐
2 parents 4ddd9baa c7991bb0

Merge branch 'bugfix' into tr/publish

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/actions/RoleAction.lua
... ... @@ -640,6 +640,7 @@ function _M.openTimeBoxRpc(agent, data)
640 640 end
641 641  
642 642 if role:getItemCount(costId) < count then return 8 end
  643 + if not role:checkItemEnough(costs) then return 9 end
643 644  
644 645 role:costItems({[costId] = count}, {log = {desc = "openTimeBox"}})
645 646  
... ...