Commit 58ded685a9b5d715d30db1ad753ef36b75e3b099

Authored by zhanghualin
1 parent f6322b6d

修改判断火花是否为空

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/actions/HeroAction.lua
... ... @@ -1468,7 +1468,7 @@ function _M.trainStartRpc(agent, data)
1468 1468  
1469 1469 -- 大于等于7的时候需要装备火花才能升
1470 1470 if curLevel >= 7 then
1471   - if #sparkInfo == 0 then
  1471 + if next(sparkInfo) == 0 then
1472 1472 return 6
1473 1473 end
1474 1474 local ok = false
... ...