{

    //护盾ShaderMatCap表现测试脚本

    "AbilityName": "TestPlayer_Ability_Tianheng_97",

    "AbilityStacking": "Unique",



    "OnAbilityStart":

    [

        {

            "$type": "MoleMole.ApplyModifier",

            "ModifierName": "HpShieldModifier"

        }

    ],



    "Modifiers" : 

    {

        "HpShieldModifier":

        {

            "ModifierStacking" : "MultipleRefresh",

            // //复现Bug时，取消该注释

            // "Duration" : 20,

            "Duration" : 10,



            "OnBeingHit":

            [

                {

                    "$type" : "MoleMole.ApplyMatCapAction",

                    "MatCapKey" : "Buddy_Shield_Electric_ShaderMatCap_Hit",

                    "Target" : "Self",

                },

            ],



            "ModifierMixins":

            [

                {

                    "$type" : "MoleMole.HpShieldMixin",

                    "Duration": 10, //有效时长



                    //护盾值

                    "TotalValueConfig": 

                    {

                        "PropertyType": "MaxHP",

                        // "CustomPropertyType": "EnhanceNum",

                        "Percentage": 0.2,

                        "Amount": 0,

                    },



                    "RecoverPercentage": 0.1, //每秒回复百分比

                    "RecoverAmount": 0, //每秒回复值

                    "Priority": 0, //扣除优先级

                    "IfTakeRestDamageWhenEmpty": true, //护盾值归零时是否承受剩余伤害



                    //护盾添加时回调

                    "AddedActions": 

                    [

                        {

                            "$type" : "MoleMole.ApplyMatCapAction",

                            "MatCapKey" : "Buddy_Shield_Electric_ShaderMatCap_Start",

                            "Target" : "Self",

                        },

                    ],

                    

                    //护盾移除时回调

                    "RemovedActions": 

                    [

                        {

                            "$type" : "MoleMole.ApplyMatCapAction",

                            "MatCapKey" : "Buddy_Shield_Electric_ShaderMatCap_End",

                            "Target" : "Self",

                        },

                        //  //复现Bug时，取消该注释

                        // {

                        //     "$type": "MoleMole.RemoveModifier",

                        //     "ModifierName": "HpShieldModifier"

                        // }

                    ],

                }

            ]

        }

    }

}