Commit c49eac9f12528f371f47c4bd4507eb322cdc5ab2
1 parent
f3eb3226
升级和突破增加关卡判断代码bug
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/actions/HeroAction.lua
@@ -44,7 +44,7 @@ function _M.levelUpRpc( agent, data ) | @@ -44,7 +44,7 @@ function _M.levelUpRpc( agent, data ) | ||
44 | -- 通过指定关卡后才能升级英雄等级 | 44 | -- 通过指定关卡后才能升级英雄等级 |
45 | local pass = globalCsv.unit_exp_level_pass[level + 1] | 45 | local pass = globalCsv.unit_exp_level_pass[level + 1] |
46 | if pass then | 46 | if pass then |
47 | - local hangPass = self:getProperty("hangPass") | 47 | + local hangPass = role:getProperty("hangPass") |
48 | if not hangPass[pass] then return 4 end | 48 | if not hangPass[pass] then return 4 end |
49 | end | 49 | end |
50 | 50 | ||
@@ -89,7 +89,7 @@ function _M.breakRpc( agent, data ) | @@ -89,7 +89,7 @@ function _M.breakRpc( agent, data ) | ||
89 | -- 通过指定关卡后才能突破英雄 | 89 | -- 通过指定关卡后才能突破英雄 |
90 | local pass = globalCsv.unit_break_level_pass[breakL] | 90 | local pass = globalCsv.unit_break_level_pass[breakL] |
91 | if pass then | 91 | if pass then |
92 | - local hangPass = self:getProperty("hangPass") | 92 | + local hangPass = role:getProperty("hangPass") |
93 | if not hangPass[pass] then return 4 end | 93 | if not hangPass[pass] then return 4 end |
94 | end | 94 | end |
95 | 95 |