diff --git a/src/actions/CarAction.lua b/src/actions/CarAction.lua index dd4daf8..215e354 100644 --- a/src/actions/CarAction.lua +++ b/src/actions/CarAction.lua @@ -114,8 +114,8 @@ function _M.runeUpRpc( agent, data ) local runeData = runeSet[id] if not runeData then return 5 end - local maxLv = table.nums(csvdb["rune_buildCsv"])-1 - if level > maxLv then return 6 end + local maxLv = #csvdb["rune_buildCsv"] + if level >= maxLv then return 6 end local lvData = csvdb["rune_buildCsv"][level] local cost = lvData.cost:toNumMap() if not role:checkItemEnough(cost) then -- libgit2 0.21.2