{

    // Anbi_天赋_04

    // 安比发动连携攻击时，会获得3层充能

    // 重击命中时，消耗1层充能，额外造成100%攻击力的雷属性伤害

    

    "AbilityName" : "Anbi_Electric_Talent_04",

    "AbilityStacking": "Unique",



    // 默认挂载命中监听Modifier

    "DefaultModifier" : 

    {

        "OnAdded":

        [

            {

                "$type":"MoleMole.ApplyModifier",

                "ModifierName":"DamageModifer",

                "Target":"Self",

            }

        ],

    },



    "AbilityMixins" :

    [

        // 安比发动连携技或终结技时，会获得10层充能（上限10层）

        {

            "$type": "MoleMole.ActwithStateFrameMixin",

            "ConfigList": 

            [

                {

                    "AnimatorStateName": "SwitchIn_Attack",

                    "LayerIndex": 0,

                    "Frame": 0,

                    "ForceTriggerOnTransitionOut": true,

                    "IsLoop": false,

                    "ActionList": 

                    [

                        {

                            "$type": "MoleMole.ModifyProperty",

                            "PropertyType": "Custom",

                            "CustomPropertyType": "CurChargePoint",

                            "IsUsePercentage": false,

                            "PropertyModifyFunction": "Add",

                            "Percentage": 0,

                            "Amount": 10,

                        }

                    ],

                },

                {

                    "AnimatorStateName": "SwitchIn_Attack_Ex",

                    "LayerIndex": 0,

                    "Frame": 0,

                    "ForceTriggerOnTransitionOut": true,

                    "IsLoop": false,

                    "ActionList": 

                    [

                        {

                            "$type": "MoleMole.ModifyProperty",

                            "PropertyType": "Custom",

                            "CustomPropertyType": "CurChargePoint",

                            "IsUsePercentage": false,

                            "PropertyModifyFunction": "Add",

                            "Percentage": 0,

                            "Amount": 10,

                        }

                    ],

                },

            ],

        },

    ],



    "Modifiers" : 

    {

        // 命中监听Modifier

        "DamageModifer" : 

        {

            "ModifierStacking": "Unique",

            "Duration" : -1,



            "OnHitOther":

            [

                {

                    "$type": "MoleMole.DamageByAttackPropertyAction",

                    "AttackProperty" :

                    {

                        "DamagePercentage" : "%AS_DamagePercentage",

                        "DamageElement" : "Elec",

                    },

                    "AttachPoint": "MiddlePoint",

                    "Target": "Target",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByHeavyAttack",

                            "IsHeavyAttack": true,

                            "Target" : "Self"

                        },

                        {

                            "$type": "MoleMole.ByPlayerPropertyValue",

                            "Numerator": "Custom",

                            "CustomNumerator": "CurChargePoint",

                            //"Denominator": "Custom",

                            //"CustomDenominator": "MaxChargePoint",

                            "IsUsePercent": false,

                            "CompareType": "Greater",

                            "Val1" : 0,

                            //"Val2" : 300,

                            "Target" : "Self"

                        },

                    ]

                },

            ],



            "OnDamageCalculated":

            [

                {

                    "$type":"MoleMole.ApplyModifier",

                    "ModifierName":"IntervalCDModifer",

                    "Target":"Self",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByHeavyAttack",

                            "IsHeavyAttack": true,

                            "Target" : "Self"

                        },

                        {

                            "$type": "MoleMole.ByPlayerPropertyValue",

                            "Numerator": "Custom",

                            "CustomNumerator": "CurChargePoint",

                            //"Denominator": "Custom",

                            //"CustomDenominator": "MaxChargePoint",

                            "IsUsePercent": false,

                            "CompareType": "Greater",

                            "Val1" : 0,

                            //"Val2" : 300,

                            "Target" : "Self"

                        },

                    ]

                },

            ],

        },



        // 内置CD Modifier

        "IntervalCDModifer" : 

        {

            "ModifierStacking": "Unique",

            "Duration" : "%AS_IntervalCD",



            "OnAdded":

            [

                {

                    "$type": "MoleMole.ModifyProperty",

                    "PropertyType": "Custom",

                    "CustomPropertyType": "CurChargePoint",

                    "IsUsePercentage": false,

                    "PropertyModifyFunction": "Add",

                    "Percentage": 0,

                    "Amount": -1,

                    "Target": "Caster",

                },

                {

                    "$type":"MoleMole.RemoveModifier",

                    "ModifierName":"DamageModifer",

                    "Target":"Self",

                }

            ],



            "OnRemoved":

            [

                {

                    "$type":"MoleMole.ApplyModifier",

                    "ModifierName":"DamageModifer",

                    "Target":"Self",

                },

            ],

        },

    },



    "AbilitySpecials" : 

    {

        //表格参数

        "AS_DamagePercentage" :

        {

            "Value" : 1.0

        },



        "AS_IntervalCD" :

        {

            "Value" : 1.0

        },

    }

}