From 7f4a86f84f758774920ea348835954fec6db6588 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期五, 09 八月 2019 11:17:38 +0800 Subject: [PATCH] Merge branch 'master' of http://mobile.173on.com:10010/r/SnxxServerCode --- 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