Commit 6aedd9047551850ee39ee39a2aa1d14ffd12d360
1 parent
8fd48928
判断觉醒技能所在的觉醒等级不能大于英雄当前的等级
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/actions/HeroAction.lua
| @@ -1302,6 +1302,9 @@ function _M.saveGeniusTreeRpc(agent, data) | @@ -1302,6 +1302,9 @@ function _M.saveGeniusTreeRpc(agent, data) | ||
| 1302 | local hero = role.heros[tonumber(heroId)] | 1302 | local hero = role.heros[tonumber(heroId)] |
| 1303 | 1303 | ||
| 1304 | if not hero then print("hero is nil") return 0 end | 1304 | if not hero then print("hero is nil") return 0 end |
| 1305 | + | ||
| 1306 | + if wakeL > hero:getProperty("wakeL") then return 1 end | ||
| 1307 | + | ||
| 1305 | local genius = hero:saveGeniusTree(wakeL, awake) | 1308 | local genius = hero:saveGeniusTree(wakeL, awake) |
| 1306 | if #genius == 0 then | 1309 | if #genius == 0 then |
| 1307 | genius = "" | 1310 | genius = "" |