From 93cf2720f200bf5f5bc6defee600f474fa522590 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 18 十一月 2021 15:22:02 +0800
Subject: [PATCH] 5274 【BT5】【主干】跨服充值排行榜问题(上榜增加保底限制逻辑默认读排行模板最低额度限制;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