From d9f13c5e9a02f31cad2f58357acd3140809e88c1 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 11 九月 2018 19:57:27 +0800
Subject: [PATCH] fix:3477【后端】【1.0.15】【1.1.0】娲皇遗迹新增Vip特权:副本购买次数

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 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 a31bf3c..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
@@ -43,7 +42,6 @@
 import PetControl
 import QuestCommon
 
-#GameWorld.ImportAll("Script\\Skill\\", "SkillBoosts")
 GameWorld.ImportAll("Script\\Skill\\", "PassiveBuff")
 
 
@@ -97,14 +95,16 @@
             if key == "MountLv":
                 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"):
+
+                if (pow(2, int(strIndex)) & mission_1.GetProperty("OpenSkillSlots")) == 0:
                     return
                 
     PlayerControl.NomalDictSetProperty(curPlayer, 

--
Gitblit v1.8.0