#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ##@package Skill.PassiveTrigger.PassiveEff_6011 # # @todo:Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È£¨¸ù¾Ýbuff²ã¼¶£© # @author hxp # @date 2025-09-24 # @version 1.0 # # ÏêϸÃèÊö: Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È£¨¸ù¾Ýbuff²ã¼¶£© # #------------------------------------------------------------------------------- #"""Version = 2025-09-24 19:00""" #------------------------------------------------------------------------------- def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, **skillkwargs): layerPer = curEffect.GetEffectValue(0) # ÿ²ãÔö¼ÓµÄÍò·Ö±È buffState = curEffect.GetEffectValue(1) # buff״̬ if not buffState: return layerTotal = 0 buffMgr = attacker.GetBuffManager() for buff in buffMgr.FindBuffListByState(buffState): layerTotal += buff.GetLayer() return layerTotal * layerPer