From 6ed7fdf75d8bfcdbde5e8eaf0f5698a45e359076 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 13 十二月 2021 14:16:58 +0800
Subject: [PATCH] 9293 【BT5】【后端】新增绝版礼包
---
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