Commit f02087eda96fd0a0e95519260edb6693cfabe5a0

Authored by chenyueqi
1 parent 3e205f5e

调理室解锁技能点增加前置关卡条件判定

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
src/actions/DinerAction.lua
... ... @@ -314,6 +314,13 @@ function _M.talentUpRpc( agent, data )
314 314 end
315 315 end
316 316  
  317 + if talentData.levelFront ~= "" then
  318 + local hangPass = role:getProperty("hangPass")
  319 + if not hangPass[tonumber(talentData.levelFront)] then
  320 + return 9
  321 + end
  322 + end
  323 +
317 324 local cost = talentData.cost:toNumMap()
318 325 if not role:checkItemEnough(cost) then
319 326 return 6
... ...