Commit b6c4416d91eee615f1a084ec43a3b14efed044af
Merge branch 'develop' into qa
Showing
2 changed files
with
3 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 | ... | ... |