| | |
| | | #!/usr/bin/python
|
| | | # -*- coding: GBK -*-
|
| | | #
|
| | | # @todo: 增加所有攻击伤害 含普攻
|
| | | # @todo: 增加所有攻击伤害 含普攻 附加血量判断 --(PVP)主角生命值低于30%时,所有技能伤害再增加60%
|
| | | #
|
| | | # @author: Alee
|
| | | # @date 2018-1-9 下午09:39:37
|
| | |
| | |
|
| | |
|
| | | def CheckCanHappen(attacker, defender, effect, curSkill):
|
| | | # 未配置不验证血量百分比
|
| | | hpPer = effect.GetEffectValue(2)
|
| | | if hpPer:
|
| | | if GameObj.GetHP(attacker)*ChConfig.Def_MaxRateValue/GameObj.GetMaxHP(attacker) >= hpPer:
|
| | | return False
|
| | | |
| | | |
| | | return GameWorld.CanHappen(effect.GetEffectValue(1))
|
| | |
|
| | |
|
| | | def GetValue(attacker, defender, effect):
|
| | | return float(effect.GetEffectValue(0))/ChConfig.Def_MaxRateValue
|
| | | return effect.GetEffectValue(0)
|