Commit 04258e10bca660f4de0b9600839710aa3bb0bf05
1 parent
6fc397d6
天赋bug
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
src/actions/HeroAction.lua
| ... | ... | @@ -99,12 +99,11 @@ function _M.talentRpc(agent, data) |
| 99 | 99 | local need = {[0] = 1, [1] = 1, [2] = 1, [3] = 1, [4] = 1} |
| 100 | 100 | if not need[index] then return 2 end |
| 101 | 101 | |
| 102 | + local talent = hero:getProperty("talent") | |
| 102 | 103 | local curStage = talent:getv(0, 1) |
| 103 | 104 | local curData = csvdb["unit_talentCsv"][curStage] |
| 104 | 105 | if not curData then return 4 end |
| 105 | 106 | |
| 106 | - | |
| 107 | - local talent = hero:getProperty("talent") | |
| 108 | 107 | if index == 0 then |
| 109 | 108 | --是否进阶 |
| 110 | 109 | local max = true | ... | ... |