hxp
2019-06-22 d0f5f9922f17f5bff4288173f18a9ed827d95db8
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4528.py
@@ -19,11 +19,16 @@
def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
    useSkill = skillkwargs.get("useSkill", None)
    skillLimist = passiveEffect.GetEffectValue(2)
    # 主动型技能才有效
    if passiveEffect.GetEffectValue(2) and useSkill:
        if useSkill.GetFuncType() not in [ChConfig.Def_SkillFuncType_FbSkill,
                                          ChConfig.Def_SkillFuncType_NormalAttack]:
            return False
    if skillLimist and useSkill:
        if skillLimist == 1:
            if useSkill.GetFuncType() not in [ChConfig.Def_SkillFuncType_FbSkill,
                                              ChConfig.Def_SkillFuncType_NormalAttack]:
                return False
        elif skillLimist == 2:
            if useSkill.GetFuncType() != ChConfig.Def_SkillFuncType_NormalAttack:
                return False
        
    if passiveEffect.GetEffectValue(1):
        # 只针对第一目标