From 31a441bf2842217a4fb215ae25d6e836980f52d4 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期四, 24 一月 2019 10:17:34 +0800 Subject: [PATCH] 5924 【后端】【1.5.100】诛仙Boss功能(杀人不红名) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4005.py | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4005.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4005.py index f4e59a8..e9ee027 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4005.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4005.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: GBK -*- # -# @todo: 增加所有攻击伤害 含普攻 +# @todo: 增加所有攻击伤害 含普攻 附加血量判断 --(PVP)主角生命值低于30%时,所有技能伤害再增加60% # # @author: Alee # @date 2018-1-9 下午09:39:37 @@ -18,6 +18,13 @@ 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)) -- Gitblit v1.8.0