Commit a2df11d64f38815a13ee2f8fbffe8daea5879d2f
1 parent
47343863
fix: 修复天赋点 在6星的时候激活4星觉醒技不成功的bug
Showing
1 changed file
with
3 additions
and
4 deletions
Show diff stats
src/models/HeroPlugin.lua
| ... | ... | @@ -456,12 +456,11 @@ function HeroPlugin.bind(Hero) |
| 456 | 456 | |
| 457 | 457 | local maxWakeL |
| 458 | 458 | maxWakeL, _, genius = self:checkGeniusTree(genius) |
| 459 | - if maxWakeL ~= wakeL then | |
| 459 | + if maxWakeL == 0 then | |
| 460 | 460 | genius = self:getProperty("genius") |
| 461 | 461 | else |
| 462 | - | |
| 463 | - if curWakeL > maxWakeL and maxWakeL % 2 == 0 then --自动升一级,举例,6星设置4星觉醒技能。自动升级到5星 | |
| 464 | - genius = string.format("%s %s=%s", genius, tostring(maxWakeL + 1), tostring(awake)) | |
| 462 | + if curWakeL > wakeL and wakeL % 2 == 0 then --自动升一级,举例,6星设置4星觉醒技能。自动升级到5星 | |
| 463 | + genius = string.format("%s %s=%s", genius, tostring(wakeL + 1), tostring(awake)) | |
| 465 | 464 | maxWakeL, _, genius = self:checkGeniusTree(genius) |
| 466 | 465 | end |
| 467 | 466 | end | ... | ... |