From cc0fc8b3d5e38212eb02a2e4167084649ff2a1eb Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期四, 23 八月 2018 14:24:34 +0800 Subject: [PATCH] fix:【后端】被动技能槽解锁条件修改,添加任务判断 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py index 906b908..a31bf3c 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py @@ -41,6 +41,7 @@ import EventShell import NPCCommon import PetControl +import QuestCommon #GameWorld.ImportAll("Script\\Skill\\", "SkillBoosts") GameWorld.ImportAll("Script\\Skill\\", "PassiveBuff") @@ -97,6 +98,15 @@ if PlayerHorse.GetHorseSumLV(curPlayer) < value: return + # 多加一种任务判断 + if key == "OpenSkillSlots": + # 主线任务完成时会设置标志可进地图标志 + mission_1 = QuestCommon.GetCommonMission(curPlayer) + if not mission_1: + return + if strIndex > mission_1.GetProperty("OpenSkillSlots"): + return + PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_GFPassiveIndex%(clientData.Page, clientData.Index), clientData.SkillID, -- Gitblit v1.8.0