From f02087eda96fd0a0e95519260edb6693cfabe5a0 Mon Sep 17 00:00:00 2001 From: chenyueqi <1056825054@qq.com> Date: Mon, 9 Mar 2020 15:32:20 +0800 Subject: [PATCH] 调理室解锁技能点增加前置关卡条件判定 --- src/actions/DinerAction.lua | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/src/actions/DinerAction.lua b/src/actions/DinerAction.lua index 3b08901..11d9fe8 100644 --- a/src/actions/DinerAction.lua +++ b/src/actions/DinerAction.lua @@ -314,6 +314,13 @@ function _M.talentUpRpc( agent, data ) end end + if talentData.levelFront ~= "" then + local hangPass = role:getProperty("hangPass") + if not hangPass[tonumber(talentData.levelFront)] then + return 9 + end + end + local cost = talentData.cost:toNumMap() if not role:checkItemEnough(cost) then return 6 -- libgit2 0.21.2