From a075f7841fb2d0a3b32bf10c8bc2df5bf02d6acb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 14 十二月 2025 14:24:28 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(贾诩所有技能;5022效果支持配置buff额外属性计算方式;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5022.py |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5022.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5022.py
index dc46601..2e01ef8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5022.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5022.py
@@ -4,12 +4,12 @@
 #
 ##@package Skill.PassiveTrigger.PassiveEff_5022
 #
-# @todo:额外增加buff效果ID/属性ID值
+# @todo:额外增加/减少buff效果ID/属性ID值
 # @author hxp
 # @date 2025-10-30
 # @version 1.0
 #
-# 详细描述: 额外增加buff效果ID/属性ID值
+# 详细描述: 额外增加/减少buff效果ID/属性ID值
 #
 #-------------------------------------------------------------------------------
 #"""Version = 2025-10-30 16:00"""
@@ -18,10 +18,12 @@
 import GameWorld
 
 def DoSkillEffectLogic(turnFight, batObj, tagObj, effSkill, curEffect, connSkill, connBuff, **kwargs):
-    effValues = curEffect.GetEffectValues()
-    for index in range(0, len(effValues), 2):
-        attrID = effValues[index]
-        attrValue = effValues[index + 1] if len(effValues) > index + 1 else 0
-        GameWorld.DebugLog("额外增加buff效果ID/属性ID值: attrID=%s,attrValue=%s" % (attrID, attrValue))
-        connBuff.AddEffectValueEx(attrID, attrValue)
+    effEx1 = curEffect.GetEffectValue(0) # 支持多个属性
+    effEx2 = curEffect.GetEffectValue(1) # 支持多个属性
+    for effEX in [effEx1, effEx2]:
+        if not isinstance(effEX, list) or len(effEX) != 3:
+            continue
+        attrID, attrValue, calcType = effEX
+        GameWorld.DebugLogEx("额外buff效果ID/属性ID值: attrID=%s,attrValue=%s,calcType=%s", attrID, attrValue, calcType)
+        connBuff.AddEffectValueEx(attrID, attrValue, calcType)
     return True

--
Gitblit v1.8.0