#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package Skill.PassiveTrigger.PassiveEff_6013
|
#
|
# @todo:Ôö¼Ó×îÖÕÔöÉË£¨¸ù¾ÝÊôÐÔת»¯£©
|
# @author hxp
|
# @date 2025-09-24
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: Ôö¼Ó×îÖÕÔöÉË£¨¸ù¾ÝÊôÐÔת»¯£©
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2025-09-24 19:00"""
|
#-------------------------------------------------------------------------------
|
|
def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, **skillkwargs):
|
perAttr = curEffect.GetEffectValue(0) # ÿÍò·Ö±È
|
attrID = curEffect.GetEffectValue(1) # ÊôÐÔID
|
toPer = curEffect.GetEffectValue(2) # ת»¯ÎªxÍò·Ö±È×îÖÕÔöÉË
|
attrValue = attacker.GetBatAttrValue(attrID)
|
changeValue = attrValue / perAttr * toPer
|
return changeValue
|