From 06469e3516489bdd51bf7bb11d824e72329a25f3 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期日, 28 四月 2019 16:12:06 +0800
Subject: [PATCH] 6501 【后端】【2.0】仙盟任务(新增多个任务接口)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
index 318083e..8f260a8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
@@ -1850,9 +1850,8 @@
     
     #获得技能等级
     curSkillLV = curSkill.GetSkillLV()
-    
     DataRecordPack.DR_LearnORUPSkill(curPlayer, curSkillID, curSkillLV)
-
+    EventShell.EventRespons_SkillUp(curPlayer, curSkill.GetFuncType())
     GameWorld.Log("升级技能名 = %s 成功, 当前等级 = %s"%(curSkill.GetSkillName(), curSkill.GetSkillLV()), curPlayer.GetPlayerID())
     return True
 
@@ -3713,19 +3712,15 @@
 ## 获取技能总等级
 #  @param curPlayer
 #  @return allSkillLV:总技能等级
-def GetAllSkillLV(curPlayer):
-    successSkillIDList = ReadChConfig.GetEvalChConfig("SuccessSkillIDList")
+def GetAllSkillLV(curPlayer, funcType):
     allSkillLV = 0
     skillManager = curPlayer.GetSkillManager()
-    for i in range(0 , skillManager.GetSkillCount()):
+    for i in xrange(skillManager.GetSkillCount()):
         curPlayerSkill = skillManager.GetSkillByIndex(i)
         if curPlayerSkill == None:
             continue
-        
-        skillTypeID = curPlayerSkill.GetSkillTypeID()
-        if skillTypeID not in successSkillIDList:
+        if curPlayerSkill.GetFuncType() != funcType:
             continue
-        
         skillLV = curPlayerSkill.GetSkillLV()
         allSkillLV += skillLV
         

--
Gitblit v1.8.0