1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package Skill.PassiveTrigger.PassiveEff_6030
#
# @todo:µôѪÉÏÏÞ±£»¤
# @author hxp
# @date 2025-12-22
# @version 1.0
#
# ÏêϸÃèÊö: µôѪÉÏÏÞ±£»¤
#
#-------------------------------------------------------------------------------
#"""Version = 2025-12-22 14:00"""
#-------------------------------------------------------------------------------
 
def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, connSkill, **skillkwargs):
    maxPer = curEffect.GetEffectValue(0) # ×î´ó²»³¬¹ý¼ÆË㷽ʽµÄÍò·Ö±È
    calcType = curEffect.GetEffectValue(1) # ¼ÆË㷽ʽ 1-×î´óѪÁ¿
    calcValue = attacker.GetMaxHP() # Ä¬Èϰ´×î´óѪÁ¿
    
    # ÆäËû·½Ê½¿ÉÖ§³Ö
    if calcType == 1:
        pass
    
    return int(calcValue * maxPer / 10000.0)