| | |
| | | #!/usr/bin/python
|
| | | # -*- coding: GBK -*-
|
| | | #
|
| | | # @todo: 减CD
|
| | | # @todo: 减CD,添加自身血量判断,自身血量低于百分比,默认0为不受血量影响
|
| | | #
|
| | | # @author: Alee
|
| | | # @date 2018-1-9 下午09:39:37
|
| | |
| | | #
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | import ItemControler
|
| | | import ChConfig
|
| | | import GameObj
|
| | |
|
| | | def CheckCanHappen(attacker, defender, effect, curSkill):
|
| | |
|
| | | # 未配置不验证血量百分比
|
| | | hpPer = effect.GetEffectValue(1)
|
| | | if hpPer:
|
| | | if GameObj.GetHP(attacker)*ChConfig.Def_MaxRateValue/GameObj.GetMaxHP(attacker) >= hpPer:
|
| | | return False
|
| | |
|
| | | return True
|
| | | |
| | |
|
| | | def GetValue(attacker, defender, effect):
|
| | | return effect.GetEffectValue(0)
|