From fd9a7fa5180364b6f1bbc269682ddf83167d6c99 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 31 八月 2018 16:36:21 +0800
Subject: [PATCH] Fix: 伤血公式参考战力等级改为世界等级;
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 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..f894fb4 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py
@@ -13,7 +13,7 @@
#
# @change: "2016-11-16 15:30" hxp 增加获取衰弱效果信息列表
#
-# 详细描述: 被动buff效果管理
+# 详细描述: 被动buff效果管理s
#
#---------------------------------------------------------------------
#"""Version = 2016-11-16 15:30"""
@@ -26,7 +26,6 @@
import GameWorld
import ChConfig
import IpyGameDataPY
-#import SkillBoosts
import SkillCommon
import BuffSkill
import SkillShell
@@ -41,8 +40,8 @@
import EventShell
import NPCCommon
import PetControl
+import QuestCommon
-#GameWorld.ImportAll("Script\\Skill\\", "SkillBoosts")
GameWorld.ImportAll("Script\\Skill\\", "PassiveBuff")
@@ -96,6 +95,17 @@
if key == "MountLv":
if PlayerHorse.GetHorseSumLV(curPlayer) < value:
return
+
+
+ # 多加一种任务判断
+ if key == "OpenSkillSlots":
+ # 主线任务完成时会设置标志可进地图标志
+ mission_1 = QuestCommon.GetCommonMission(curPlayer)
+ if not mission_1:
+ return
+
+ if (pow(2, int(strIndex)) & mission_1.GetProperty("OpenSkillSlots")) == 0:
+ return
PlayerControl.NomalDictSetProperty(curPlayer,
ChConfig.Def_PDict_GFPassiveIndex%(clientData.Page, clientData.Index),
--
Gitblit v1.8.0