#!/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)
|