From 1dbff913370634e8aea37f2940f2a0d261d4dcb3 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 27 五月 2019 20:05:10 +0800
Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
index 763e3db..162dabd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
@@ -232,14 +232,13 @@
                 changeLayer = True
                     
             # Def_Buff_Replace_New和Def_Buff_Recharge 均可走到此逻辑
-            __BuffCanRemain(buffState, curBuff, i, resultTime, plusValueList, buffOwner)
-            # 此处考虑下plusValue变强是否刷属性
-            #DoAddBuffOver(curObj, curSkill, addBuff, tick)
+            __BuffCanRemain(curObj, buffState, curBuff, i, resultTime, plusValueList, buffOwner)
+
             return changeLayer
         else:
             if buffReplaceType == ChConfig.Def_Buff_Recharge:
                 # 充能型
-                __BuffCanRemain(buffState, curBuff, i, resultTime, plusValueList, buffOwner)
+                __BuffCanRemain(curObj, buffState, curBuff, i, resultTime, plusValueList, buffOwner)
                 return
             
             processInterval = curBuff.GetProcessInterval()
@@ -545,14 +544,15 @@
 #  @param tick 当前时间
 #  @return None
 #  @remarks 函数详细说明.
-def __BuffCanRemain(buffState, curBuff, buffIndex, resultTime, plusValueList, buffOwner):
+def __BuffCanRemain(curObj, buffState, curBuff, buffIndex, resultTime, plusValueList, buffOwner):
     if resultTime != -1:
         curBuff.SetRemainTime(resultTime)
     #重置buff总值
     __SetBuffValue(curBuff , plusValueList , buffOwner)
 
     buffState.Sync_RefreshBuff(buffIndex, curBuff.GetRemainTime())
-        
+    
+    DoAddBuffOver(curObj, curBuff.GetSkill(), curBuff, buffOwner, GameWorld.GetGameWorld().GetTick())  
     return
 
 #---------------------------------------------------------------------

--
Gitblit v1.8.0