diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 5b7f51a..0cff03a 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -99,12 +99,11 @@ function _M.talentRpc(agent, data) local need = {[0] = 1, [1] = 1, [2] = 1, [3] = 1, [4] = 1} if not need[index] then return 2 end + local talent = hero:getProperty("talent") local curStage = talent:getv(0, 1) local curData = csvdb["unit_talentCsv"][curStage] if not curData then return 4 end - - local talent = hero:getProperty("talent") if index == 0 then --是否进阶 local max = true -- libgit2 0.21.2