hxp
4 天以前 ec68dabc97521a7706344e7d038e9f08462f4fe8
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,8 +18,12 @@
import GameWorld
def DoSkillEffectLogic(turnFight, batObj, tagObj, effSkill, curEffect, connSkill, connBuff, **kwargs):
    attrID = curEffect.GetEffectValue(0)
    attrValue = curEffect.GetEffectValue(1)
    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