From e4b0d44ba8cd257e7f004ce78a25332981258b8a Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 05 五月 2019 19:22:26 +0800
Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能 - 百分比掉血
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1315.py | 6 +++---
1 files changed, 3 insertions(+), 3 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..9f2d85a 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,15 +34,15 @@
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后的逻辑
--
Gitblit v1.8.0