Commit 923162ce67362ed7659af53cb95e64548eaa994c

Authored by zhouhaihai
1 parent 2471ce93

优化

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/actions/GmAction.lua
... ... @@ -121,7 +121,7 @@ function _M.herol(role, pms)
121 121 return "等级已满"
122 122 end
123 123 local nextLevel = math.min(addLevel + hero:getProperty("level"), MaxLv)
124   - for i = 0, 10 do
  124 + for i = 0, #csvdb["unit_breakCsv"] do
125 125 local upLimit = csvdb["unit_breakCsv"][i].levelLimit
126 126 local lowLimit = csvdb["unit_breakCsv"][i - 1] and csvdb["unit_breakCsv"][i - 1].levelLimit or 0
127 127 if upLimit > nextLevel and lowLimit <= nextLevel then
... ...