From 63d62011dc3639c1b6a0ea3f920e9ec6bada71f2 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 10 三月 2021 18:13:39 +0800
Subject: [PATCH] 8650 【主干】【BT2】活动规则优化(充值返利仙玉 移到主干,为节日活动类型,改为仅直充仙玉有效,配表为仙玉);

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1090.py |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1090.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1090.py
index 952ed5a..9c71126 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1090.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1090.py
@@ -16,6 +16,7 @@
 import SkillCommon
 import GameWorld
 import ChConfig
+import PlayerControl
 
 def ProcessBuff(defender, curBuff, curEffect, processBuffTick, tick):
     buffOwner = SkillCommon.GetBuffOwner(curBuff)
@@ -33,7 +34,7 @@
 def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):
     
     attrType = curEffect.GetEffectValue(1)
-    value = curEffect.GetEffectValue(2)
+    value = curEffect.GetEffectValue(2) + curBuff.GetValue2()
     calcDict[attrType] = calcDict.get(attrType, 0) - value
         
     return 
@@ -43,4 +44,17 @@
 #  @return None
 #  @remarks 函数详细说明.  
 def GetCalcType():
-    return ChConfig.TYPE_NoLinear
\ No newline at end of file
+    return ChConfig.TYPE_NoLinear
+
+## 添加BUFF后的逻辑
+#  @param None
+#  @return None
+def DoAddBuffOver(curObj, addBuff, curEffect, tick, buffOwner):
+    if not buffOwner:
+        return
+    if curEffect.GetEffectValue(1) != ChConfig.TYPE_Calc_AttrSpeed:
+        return
+    
+    addBuff.SetValue2(PlayerControl.GetSubSpeedPer(buffOwner))
+    return
+

--
Gitblit v1.8.0