From 29cbac9154e89a55da4074abcd2732a1859dcdab Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 04 六月 2019 19:17:52 +0800
Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1315.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1315.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1315.py
index 7c52ed8..2aefd69 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1315.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1315.py
@@ -34,21 +34,21 @@
     
     curBuff.SetValue(max(curBuff.GetValue() - 1, 0))
     
-    lostHP = GameObj.GetHP(tagObj)*curEffect.GetEffectValue(1)/ChConfig.Def_MaxRateValue
+    lostHP = curBuff.GetValue1()
     BaseAttack.AreaSkillAttackLostHP(tagObj, None, tagObj.GetPosX(), tagObj.GetPosY(), 
                                      curSkill, lostHP, tick, isExSkill=True)
     
 
-#buffvalue第一个值为攻击次数, 第二个值为被动增强
+#buffvalue第一个值为攻击次数, 第二个值为掉血万分率
 def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):
     curEffect = curSkill.GetEffect(0)
-    return [curEffect.GetEffectValue(0)]
+    return [curEffect.GetEffectValue(0), GameObj.GetHP(attacker)*curEffect.GetEffectValue(1)/ChConfig.Def_MaxRateValue]
         
 
 ## 添加BUFF后的逻辑
 #  @param None
 #  @return None
-def DoAddBuffOver(curObj, addBuff, curEffect, tick):
+def DoAddBuffOver(curObj, addBuff, curEffect, tick, buffOwner):
     Attack(curObj, addBuff, curEffect, tick)   #立即执行一次攻击
     if GameObj.GetHP(curObj) != 0:
         addBuff.SetProcessInterval(tick)

--
Gitblit v1.8.0