{

    "AbilityName" : "Bangboo_Eous001_Skill_Shield_Electric",

    "AbilityStacking":"Unique",



    //电磁护盾，受到攻击后触发反击，对周围造成伤害与脆弱，有1.5秒内置冷却时间，持续期间免疫所有伤害

    //触发3次后失效



    "DefaultModifier" :

    {

        "OnAdded" :

        [

            {

                "$type": "MoleMole.ApplyAbilityAction",

                "AbilityName": "Bangboo_Eous001_Skill_Shield_Electric_Attack",

                "IsAutoTrigger": false,

                "Target" : "Self"

            },

        ],

    },



    "OnAbilityStart":

    [

        {

            "$type": "MoleMole.ApplyModifier",

            "ModifierName": "ShieldModifier",

            "Target" : "Self"

        },

    ],



    "Modifiers" :

    {

        "ShieldModifier" : 

        {

            "ModifierStacking" : "MultipleRefresh",

            "Duration" : -1, //ModifierMixin与Modifier同生共死

            "MaxStackingNumber" : 1, //达到叠层上限后，最新的取代最旧的

            "IgnoreTimeScale" : false,



            "OnAdded" :

            [

                {

                    "$type": "MoleMole.SkillStartAction",

                    "StartedSkillName": "Bangboo_Eous001_Skill_Shield_Electric",

                    "Target" : "Self"

                },

                //护盾发动期间，护盾技能CD暂停读秒

                {

                    "$type": "MoleMole.PauseSkillCDAction",

                    "Target" : "Self",

                    "IsPause": true,

                    "SkillNames": 

                    [

                        "Bangboo_Eous001_Skill_Shield_Electric"

                    ],

                },

                //添加指示物标记

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "IndicatorBuffModifier",

                    "Target": "TeamAvatars"

                },

            ],



            "ModifierMixins" : 

            [

                {

                    "$type": "MoleMole.CountProtectShieldMixin", //按时间



                    "TotalDuration": -1, //有效时长

                    "DestroyRecoverTime": 99999, //破损后的再生CD



                    "EffectTarget": "TeamAvatars", //作用对象



                    "TotalCount": 3, //有效次数

                    "CostCountPropectTime": "%AS_InternalCD", //消耗次数保护时间

                    "ClosePropectTime": 0, //关闭后的保护时间

                    "RecoverCountSec": 99999, //恢复一次需要的时间



                    // "TotalValueConfig": 

                    // {

                    //     "PropertyType": "MaxHP",

                    //     // "CustomPropertyType": "EnhanceNum",

                    //     "Percentage": 0,

                    //     "Amount": 999999

                    // }, 



                    //触发结算的伤害类型

                    "ProtectHitTypes": 

                    [

                        0, //Range

                        1, //Melee

                    ],

                    

                    //"FollowEffectPattern": "Eff_Buff_DefenseUpSmall_Start",

                    //"ProtectSuccessEffectPattern": "Eff_RandomSkill_ElectricShield_Hit",



                    "ColliderConfig": 

                    {

                        "ColliderType": "Sphere",

                        "SphereColliderRadius": 0.8,

                        "ColliderPosOffset": {"x": 0.0, "y": 0.8, "z": 0.0},

                        "ColliderAngleOffset": {"x": 0.0,"y": 0.0,"z": 0.0}

                    },



                    //护盾启动

                    "ShieldStartActions": 

                    [

                        {

                            "$type": "MoleMole.ApplyMatCapAction",

                            "MatCapKey": "Bangboo_Shield_Electric_ShaderMatCap_Start",

                            "Target": "LocalAvatar"

                        },

                        {  

                            "$type" : "MoleMole.FireEffect",

                            "EffectPattern" : "Eff_Bangboo_Shield_Electric_Start",

                            "Target" : "LocalAvatar"

                        },

                    ],



                    //护盾赋予

                    "ShieldOpenActions": 

                    [

                        {

                            "$type": "MoleMole.ApplyModifier",

                            "ModifierName": "HitListenerModifier",

                            "Target": "Target"

                        },

                    ],



                    //护盾回收

                    "ShieldCloseActions": 

                    [

                        {

                            "$type": "MoleMole.RemoveModifier",

                            "ModifierName": "HitListenerModifier",

                            "Target": "Target"

                        },

                    ],



                    //护盾用完

                    "ShieldEmptyActions": 

                    [

                        {  

                            "$type" : "MoleMole.FireEffect",

                            "EffectPattern" : "Eff_Bangboo_Shield_Electric_End",

                            "Target" : "LocalAvatar"

                        },

                        {

                            "$type": "MoleMole.RemoveModifier",

                            "ModifierName": "ShieldModifier",

                            "Target": "Self"

                        },

                    ],



                    //护盾到达持续时间

                    "ShieldTimesUpActions": 

                    [

                        {

                            "$type": "MoleMole.ApplyMatCapAction",

                            "MatCapKey": "Bangboo_Shield_Electric_ShaderMatCap_End",

                            "Target": "LocalAvatar"

                        },

                        {  

                            "$type" : "MoleMole.FireEffect",

                            "EffectPattern" : "Eff_Bangboo_Shield_Electric_End",

                            "Target" : "LocalAvatar"

                        },

                        {

                            "$type": "MoleMole.RemoveModifier",

                            "ModifierName": "ShieldModifier",

                            "Target": "Self"

                        },

                    ]

                }

            ],

            

            "OnRemoved":

            [

                //护盾技能CD开始读秒

                {

                    "$type": "MoleMole.PauseSkillCDAction",

                    "Target" : "Self",

                    "IsPause": false,

                    "SkillNames": 

                    [

                        "Bangboo_Eous001_Skill_Shield_Electric"

                    ],

                },

                //去除内置CD

                {

                    "$type" : "MoleMole.RemoveModifier",

                    "ModifierName" : "CDModifier",

                    "Target" : "Self",

                },

                //去除指示物标记

                {

                    "$type": "MoleMole.RemoveModifier",

                    "ModifierName": "IndicatorBuffModifier",

                    "Target": "TeamAvatars"

                },

            ],

        },



        //护盾保护对象身上，用于监听受击

        "HitListenerModifier" : 

        {

            "ModifierStacking" : "Unique",

            "Duration" : -1,



            "OnBeingHitPre":

            [

                //免伤

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "ReduceDamageModifier",

                    "Target": "Self",

                },

                //反击（有内置CD）

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "CounterAttackModifier",

                    "Target": "Self",

                    "Predicates": 

                    [

                        {

                            "$type" : "MoleMole.ByAbilitySpecial",

                            "Target" : "Caster",

                            "ParamName": "AS_CDIndicate",

                            "ParamType": "int",

                            "CompareType": "Equal",

                            "Param" : 0,

                        },

                    ]

                },

            ],

        },



        //护盾保护对象身上，用于受击保护

        "ReduceDamageModifier" :

        {

            "ModifierStacking" : "Unique",

            "Duration" : -1,



            "OnBeingHitPre":

            [

                //免伤

                {

                    "$type": "MoleMole.ModifyAttackDataAction",

                    "Target" : "Self",

                    "PropertyKey": "Actor_DamageTakeRatio", 

                    "PropertyValue": -10, 

                },

                //霸体

                {

                    "$type" : "MoleMole.ApplyModifier",

                    "ModifierName" : "ResistBreakLevelModifier",

                    "Target" : "Self",

                },

                //受击表现

                {

                    "$type" : "MoleMole.ApplyModifier",

                    "ModifierName" : "SpecialEffectModifier",

                    "Target" : "Self",

                },

            ],



            "OnBeingHitResolved":

            [

                {

                    "$type" : "MoleMole.RemoveModifier",

                    "ModifierName" : "ResistBreakLevelModifier",

                    "Target" : "Self",

                },

                {

                    "$type": "MoleMole.RemoveModifier",

                    "ModifierName": "ReduceDamageModifier",

                    "Target": "Self"

                },

            ]

        },



        //护盾保护对象身上，用于特效表现内置CD

        "SpecialEffectModifier" :

        {

            "ModifierStacking" : "Unique",

            "Duration" : "%AS_InternalCD_SpecialEffect",

            "IgnoreTimeScale" : false,



            "OnAdded":

            [

                {

                    "$type": "MoleMole.ApplyMatCapAction",

                    "MatCapKey": "Bangboo_Shield_Electric_ShaderMatCap_Hit",

                    "Target": "Self"

                },

            ],

        },



        //护盾保护对象身上，用于反击，同时触发内置CD

        "CounterAttackModifier" :

        {

            "ModifierStacking" : "Unique",

            "Duration" : -1,



            "OnBeingHitPre":

            [

                //由施法者发动的子弹打击

                {

                    "$type" : "MoleMole.TriggerAbilityAction",

                    "AbilityName" : "Bangboo_Eous001_Skill_Shield_Electric_Attack",

                    "Target" : "Caster",

                },

                //向施法者添加内置CD倒计时

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "CDModifier",

                    "Target": "Caster"

                },

            ],



            "OnBeingHitResolved":

            [

                {

                    "$type": "MoleMole.RemoveModifier",

                    "ModifierName": "CounterAttackModifier",

                    "Target": "Self"

                },

            ]

        },



        //施法者身上，用于内置CD倒计时

        "CDModifier" :

        {

            "ModifierStacking" : "Unique",

            "Duration" : "%AS_InternalCD",

            "IgnoreTimeScale" : false,



            "OnAdded":

            [

                {

                    "$type": "MoleMole.SetAbilitySpecialAction",

                    "Target": "Caster",

                    "ParamName": "AS_CDIndicate",

                    "ParamType": "int",

                    "ModifyFunction": "Replace",

                    "Param": 1

                },

            ],



            "OnRemoved":

            [

                {

                    "$type": "MoleMole.SetAbilitySpecialAction",

                    "Target": "Self",

                    "ParamName": "AS_CDIndicate",

                    "ParamType": "int",

                    "ModifyFunction": "Replace",

                    "Param": 0

                },

            ]

        },



        "ResistBreakLevelModifier":

        {

            "ModifierStacking": "MultipleRefresh",

            "Duration" : -1,



            "OnAdded":

            [

                {

                    "$type": "MoleMole.SetRBLAction",

                    "Tag": "Shield_Electric",

                    "RBL": 3,

                    "Target": "Self"

                },

            ],



            "OnRemoved":

            [

                {

                    "$type": "MoleMole.UnsetRBLAction",

                    "Tag": "Shield_Electric",

                    "Target": "Self"

                },

            ],

        },



        "IndicatorBuffModifier":

        {

            "Duration": -1,

            "IgnoreTimeScale" : false,

            "Buff":

            {

                "BuffID" : 500003,

                "IsOverrideDuration" : true

            }

        }

    },



    "AbilitySpecials":

    {

        //次数消耗与触发反击的内置CD

        "AS_InternalCD":

        {

            "Value" : 1.5

        },



        //倒计时指示器，0为Ready，1为CD中

        "AS_CDIndicate":

        {

            "Value" : 0

        },



        //触发受击表现特效

        "AS_InternalCD_SpecialEffect":

        {

            "Value" : 0.15

        },

    }

}