From b8db02d69c95fa1f94e304ab6a7714c54517a9e0 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 09 八月 2019 03:39:18 +0800
Subject: [PATCH] 8197 【主干】【后端】莲台合成分解功能

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 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 11f418e..133c3e2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py
@@ -40,6 +40,7 @@
 import NPCCommon
 import PetControl
 import QuestCommon
+import ItemCommon
 
 GameWorld.ImportAll("Script\\Skill\\", "PassiveBuff")
 
@@ -1683,12 +1684,9 @@
             #无技能
             continue
         
-        for j in xrange(curEquip.GetAddSkillCount()):
-            skillID = curEquip.GetAddSkill(j)
-            if skillID == 0:
-                break
-            
-            skillsDict[skillID] = skillsDict.get(skillID, 0) + 1  
+        itemSkillIDList = ItemCommon.GetItemSkillIDList(curEquip)
+        for skillID in itemSkillIDList:
+            skillsDict[skillID] = skillsDict.get(skillID, 0) + 1
             
     return skillsDict
 

--
Gitblit v1.8.0