#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ##@package Skill.PassiveTrigger.PassiveEff_Attr # # @todo:±»¶¯´¥·¢ÊôÐÔ # @author hxp # @date 2025-09-16 # @version 1.0 # # ÏêϸÃèÊö: ±»¶¯´¥·¢ÊôÐÔ # #------------------------------------------------------------------------------- #"""Version = 2025-09-16 14:30""" #------------------------------------------------------------------------------- def GetHappenValue(attacker, defender, curEffect, effSkill, **skillkwargs): checkInStateList = curEffect.GetEffectValue(2) if checkInStateList: if not defender.CheckInState(checkInStateList): return attrValue = curEffect.GetEffectValue(0) calcType = curEffect.GetEffectValue(1) if calcType == 2: # ¼õÉÙ£¬ÆäËûĬÈÏÔö¼Ó attrValue = -attrValue return attrValue