From 32022e190516e778747334d76aa49448dbfc8e61 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 11 五月 2019 17:13:46 +0800
Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能 - 效果900 增加印记上限配置为0为不限制
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_900.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_900.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_900.py
index c19a517..e908781 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_900.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_900.py
@@ -15,6 +15,7 @@
#导入
import PlayerControl
import ChConfig
+import GameWorld
#---------------------------------------------------------------------
## buff线性增加属性
@@ -25,7 +26,11 @@
def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):
attrType = curEffect.GetEffectValue(0)
- calcDict[attrType] = calcDict.get(attrType, 0) + curEffect.GetEffectValue(1)*min(curBuff.GetValue(), curEffect.GetEffectValue(2))
+ cnt = curBuff.GetValue()
+ if curEffect.GetEffectValue(2):
+ cnt = min(curBuff.GetValue(), curEffect.GetEffectValue(2))
+
+ calcDict[attrType] = calcDict.get(attrType, 0) + curEffect.GetEffectValue(1)*cnt
return
@@ -43,8 +48,7 @@
# @param curEffect 当前技能效果1
# @return 总值
def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):
-
- return [PlayerControl.GetYinjiCnt(defender)]
+ return [PlayerControl.GetYinjiCnt(attacker)]
--
Gitblit v1.8.0