Commit 6cb2461628ec4f5db59eb3115a53a69c2220951a
1 parent
4a25969f
重置突破等级的时候不判断突破等级合法
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/actions/HeroAction.lua
... | ... | @@ -1303,7 +1303,7 @@ function _M.saveGeniusTreeRpc(agent, data) |
1303 | 1303 | |
1304 | 1304 | if not hero then print("hero is nil") return 0 end |
1305 | 1305 | |
1306 | - if wakeL > hero:getProperty("wakeL") then return 1 end | |
1306 | + if wakeL and wakeL > hero:getProperty("wakeL") then return 1 end | |
1307 | 1307 | |
1308 | 1308 | local genius = hero:saveGeniusTree(wakeL, awake) |
1309 | 1309 | if #genius == 0 then | ... | ... |