From 04258e10bca660f4de0b9600839710aa3bb0bf05 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Tue, 28 Apr 2020 15:31:55 +0800 Subject: [PATCH] 天赋bug --- src/actions/HeroAction.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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