Commit 3f50410e973e585e5b9497d78cf21e711465b647

Authored by zhouhaihai
1 parent 71003290

判断错误

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/actions/CarAction.lua
... ... @@ -114,8 +114,8 @@ function _M.runeUpRpc( agent, data )
114 114 local runeData = runeSet[id]
115 115 if not runeData then return 5 end
116 116  
117   - local maxLv = table.nums(csvdb["rune_buildCsv"])-1
118   - if level > maxLv then return 6 end
  117 + local maxLv = #csvdb["rune_buildCsv"]
  118 + if level >= maxLv then return 6 end
119 119 local lvData = csvdb["rune_buildCsv"][level]
120 120 local cost = lvData.cost:toNumMap()
121 121 if not role:checkItemEnough(cost) then
... ...