{

    //低血量受击表现测试脚本

    "AbilityName": "TestPlayer_Ability_Tianheng_98",

    "AbilityStacking": "Unique",



    "DefaultModifier":

    {

        "OnAdded":

        [

            {

                "$type": "MoleMole.ApplyModifier",

                "ModifierName": "HitListenerModifier"

            }

        ]

    },



    "Modifiers" : 

    {

        "HitListenerModifier":

        {

            "ModifierStacking" : "Refresh",

            "Duration" : -1,



            "OnAdded":

            [

                {

                    "$type" : "MoleMole.FireEffect",

                    "EffectPattern" : "Eff_Avatar_LevelUp_01",

                    "Target" : "Self",

                }

            ],



            "OnBeDamageCalculated":

            [

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "HitLowHPModifier"

                },

            ],

        },



        "HitLowHPModifier":

        {

            "ModifierStacking" : "Unique",

            "Duration" : 0.7,

            "IgnoreTimeScale" : true,



            "OnAdded":

            [

                //TimeSlow效果

                {

                    "$type" : "MoleMole.TimeSlowByConfigKeyAction",

                    "ConfigKey" : "Player_LowHP_TimeSlow_01",

                    "IsGlobal" : true,

                },

                //Zoom效果

                {

                    "$type" : "MoleMole.CameraZoomAction",

                    "ZoomConfigKey" : "Player_LowHP_CamZoom_01",

                },

                //Stretch效果

                {

                    "$type" : "MoleMole.CameraStretchAction",

                    "StretchConfigKey" : "Player_LowHP_CamStretch_01",

                },

                //Vignette效果

                {

                    "$type" : "MoleMole.ProcessScreenEffectAction",

                    "EffectType" : "Vignette",

                    "EffectKey" : "Player_LowHP_Vignette_01",

                },

                //RadialBlur效果

                {

                    "$type" : "MoleMole.ProcessScreenEffectAction",

                    "EffectType" : "RadialBlur",

                    "EffectKey" : "Player_LowHP_RadialBlur_01",

                },

                //Glitch效果

                {

                    "$type":"MoleMole.ProcessScreenEffectAction",

                    "EffectType":"Glitch",

                    "EffectKey":"Player_LowHP_Glitch_01"

                },

                //无敌Buff

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "InvincibleBuffModifier"

                }

            ],



            "OnRemoved":

            [

                //打断TimeSlow效果

                {

                    "$type" : "MoleMole.InterruptTimeSlowAction",

                    "TargetKey" : "Player_LowHP_TimeSlow_01",

                },

                //打断Zoom

                {

                    "$type" : "MoleMole.CameraZoomEndAction",

                    "EndCameraZoomKey" : "Player_LowHP_CamZoom_01",

                },

                //打断Stretch

                {

                    "$type" : "MoleMole.CameraStretchEndAction",

                    "EndCameraStretchKey" : "Player_LowHP_CamStretch_01",

                },

                //打断Vignette效果

                {

                    "$type" : "MoleMole.InterruptScreenEffectAction",

                    "EffectType" : "Vignette",

                    "TargetKey" : "Player_LowHP_Vignette_01",

                },

                //打断RadialBlur效果

                {

                    "$type" : "MoleMole.InterruptScreenEffectAction",

                    "EffectType" : "RadialBlur",

                    "EffectKey" : "Player_LowHP_RadialBlur_01",

                },

                //打断Glitch效果

                {

                    "$type" : "MoleMole.InterruptScreenEffectAction",

                    "EffectType" : "Glitch",

                    "TargetKey" : "Player_LowHP_Glitch_01",

                },

                //打断无敌Buff

                {

                    "$type": "MoleMole.RemoveModifier",

                    "ModifierName": "InvincibleBuffModifier"

                }

            ],

        },



        "InvincibleBuffModifier" : 

        {

            "Duration" : -1,



            "Buff":

            {

                "BuffID" : 121001,

                "IsOverrideDuration" : true

            }

        }

    }

}