Commit d1aa92e4abadb0222c647697a54463b8a26645b4

Authored by zhouhaihai
2 parents 958739a8 3f50410e

Merge branch 'develop' into player

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
... ...