diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index b529cc8..d34879a 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -44,7 +44,7 @@ function _M.levelUpRpc( agent, data ) -- 通过指定关卡后才能升级英雄等级 local pass = globalCsv.unit_exp_level_pass[level + 1] if pass then - local hangPass = self:getProperty("hangPass") + local hangPass = role:getProperty("hangPass") if not hangPass[pass] then return 4 end end @@ -89,7 +89,7 @@ function _M.breakRpc( agent, data ) -- 通过指定关卡后才能突破英雄 local pass = globalCsv.unit_break_level_pass[breakL] if pass then - local hangPass = self:getProperty("hangPass") + local hangPass = role:getProperty("hangPass") if not hangPass[pass] then return 4 end end -- libgit2 0.21.2