#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package Skill.PassiveBuff.PassiveSkill_5004
|
#
|
# @todo:±»¹¥»÷ºó´¥·¢±»¶¯¼¼ÄÜ, ¸½¼ÓÌõ¼þ ѪÁ¿Ê״εÍÓÚXX°Ù·Ö±È
|
# @author hxp
|
# @date 2024-01-20
|
# @version 1.0
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2024-01-20 17:00"""
|
#-------------------------------------------------------------------------------
|
|
import ChConfig
|
import GameObj
|
|
def CheckCanHappen(attacker, defender, effect, curSkill):
|
hpPer = effect.GetEffectValue(0)
|
lowestHP = GameObj.GetLowestHP(attacker)
|
lowestHPPer = lowestHP * ChConfig.Def_MaxRateValue / GameObj.GetMaxHP(attacker)
|
return lowestHPPer < hpPer
|