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
28
29
30
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package Skill.PassiveTrigger.PassiveEff_6010
#
# @todo:Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È£¨ÑéÖ¤µ±Ç°ÉúÃü£©
# @author hxp
# @date 2025-09-24
# @version 1.0
#
# ÏêϸÃèÊö: Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È£¨ÑéÖ¤µ±Ç°ÉúÃü£©
#
#-------------------------------------------------------------------------------
#"""Version = 2025-09-24 19:00"""
#-------------------------------------------------------------------------------
 
def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, **skillkwargs):
    checkHPPer = curEffect.GetEffectValue(1)
    checkType = curEffect.GetEffectValue(2)
    nowPer = attacker.GetHP() / float(attacker.GetMaxHP()) * 100
    # Ð¡ÓÚµÈÓÚ
    if checkType == 0:
        if nowPer > checkHPPer:
            return
    # ´óÓÚµÈÓÚ
    else:
        if nowPer < checkHPPer:
            return
    return curEffect.GetEffectValue(0)