hxp
2019-12-10 3efbd281d472248b62832b316ba45d823dabf913
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4023.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
# -*- coding: GBK -*-
#
# @todo: 被攻击后触发被动技能, 附加条件 血量低于XX百分比
# @todo: 被攻击后触发被动技能, 附加条件 血量低于XX百分比, 附加被攻击次数判定
#
# @author: Alee
# @date 2018-1-9 下午09:39:37
@@ -23,4 +23,14 @@
        if GameObj.GetHP(attacker)*ChConfig.Def_MaxRateValue/GameObj.GetMaxHP(attacker) >= effect.GetEffectValue(1):
            return False
        
    if effect.GetEffectValue(2):
        # 攻击次数判定
        attackCnt = curSkill.GetProficiency()
        curSkill.SetProficiency(attackCnt + 1)
        if attackCnt + 1 >= effect.GetEffectValue(2):
            curSkill.SetProficiency(0)
        else:
            return False
    return GameWorld.CanHappen(effect.GetEffectValue(0))