From 3f50410e973e585e5b9497d78cf21e711465b647 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Mon, 20 Apr 2020 20:26:03 +0800 Subject: [PATCH] 判断错误 --- src/actions/CarAction.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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