Commit 8e2d9f739a0616a11858d67577ff38279b97bb93
1 parent
6cb24616
修复英雄觉醒之后可升级的天赋技没有自动升级问题
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/actions/HeroAction.lua
... | ... | @@ -153,7 +153,8 @@ function _M.wakeRpc(agent, data) |
153 | 153 | end |
154 | 154 | |
155 | 155 | if curLevel >= 4 then --自动觉醒技能 |
156 | - hero:increGeniusTree() | |
156 | + local new = hero:increGeniusTree() | |
157 | + hero:updateProperty({field = "genius", value = new}) | |
157 | 158 | end |
158 | 159 | hero:mylog({desc = "wake", int1 = hero:getProperty("wakeL")}) |
159 | 160 | ... | ... |