hxp
4 天以前 19956b8576f2c2c68c4c4d811acbc3e2af3d97b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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