{

    "AbilityName": "Box_Default",

    "AbilityStacking": "Unique",

    "DefaultModifier": {

        "OnAdded": [

            {

                "$type": "MoleMole.ApplyModifier",

                "ModifierName": "Box_BeHit",

                "Target": "Self"

            },



            {

                "$type": "MoleMole.ApplyModifier",

                "ModifierName": "Box_BuffModifier",

                "Target": "Self"

            }

        ],

    },

    "Modifiers": 

    {

        //屏蔽伤害

        "Box_BuffModifier":

        {

            "Duration" : -1,

            "Buff" : 

            {

                "BuffID" : 121001,   //StunBuff

                "IsOverrideDuration" : true

            }

        },

        

        //被击时判定玩家与箱子的距离

        "Box_BeHit": {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "OnBeingHit": [

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BoxTypeModifier",

                    "Target": "Self",

                    "Predicates": [

                        {

                            "$type": "MoleMole.ByDistance",

                            "Distance": 15,

                            "Target": "Self",

                            "CompareType": "LessEqual",

                            "CompareTarget": "LocalAvatar"

                        }

                    ]

                },

            ],

        },

        //判定箱子的类型

        "BoxTypeModifier": {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "OnAdded": [

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BoxModifier",

                    "Target": "Self",

                    "Predicates": [

                        {

                            "$type": "MoleMole.ByTags",

                            "Target": "Self",

                            "TagList": [

                                "Box",

                            ],

                        },

                    ]

                },

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BoxMiddle01Modifier",

                    "Target": "Self",

                    "Predicates": [

                        {

                            "$type": "MoleMole.ByTags",

                            "Target": "Self",

                            "TagList": [

                                "BoxMiddle01",

                            ],

                        },

                    ]

                },

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BoxMiddle02Modifier",

                    "Target": "Self",

                    "Predicates": [

                        {

                            "$type": "MoleMole.ByTags",

                            "Target": "Self",

                            "TagList": [

                                "BoxMiddle02",

                            ],

                        },

                    ]

                },

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BoxLarge01Modifier",

                    "Target": "Self",

                    "Predicates": [

                        {

                            "$type": "MoleMole.ByTags",

                            "Target": "Self",

                            "TagList": [

                                "BoxLarge01",

                            ],

                        },

                    ]

                },

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BoxLarge02Modifier",

                    "Target": "Self",

                    "Predicates": [

                        {

                            "$type": "MoleMole.ByTags",

                            "Target": "Self",

                            "TagList": [

                                "BoxLarge02",

                            ],

                        },

                    ]

                },

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BoxExLarge01Modifier",

                    "Target": "Self",

                    "Predicates": [

                        {

                            "$type": "MoleMole.ByTags",

                            "Target": "Self",

                            "TagList": [

                                "BoxExLarge01",

                            ],

                        },

                    ]

                },

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BoxExLarge02Modifier",

                    "Target": "Self",

                    "Predicates": [

                        {

                            "$type": "MoleMole.ByTags",

                            "Target": "Self",

                            "TagList": [

                                "BoxExLarge02",

                            ],

                        },

                    ]

                },

            ]

        },

        "BoxModifier": {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "Target": "Self",

            "OnAdded": [

                {

                    "$type": "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType": 1,

                    "ParamName": "Trigger_Die",

                    "Target": "Self",

                    "BoolVal": true,

                },

            ],

            "OnDeadHandler": [

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Box_Explode",

                    "Target": "Self",

                },

                {

                    "$type": "MoleMole.FireAudio",

                    "AudioPattern": "Play_WoodBox_Break_Light",

                },

            ]

        },

        "BoxMiddle01Modifier": {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "Target": "Self",

            "OnAdded": [

                {

                    "$type": "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType": 1,

                    "ParamName": "Trigger_Die",

                    "Target": "Self",

                    "BoolVal": true,

                },

            ],

            "OnDeadHandler": [

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Box_Explode_02",

                    "Target": "Self",

                },

                {

                    "$type": "MoleMole.FireAudio",

                    "AudioPattern": "Play_WoodBox_Break_Mid",

                },

            ]

        },

        "BoxMiddle02Modifier": {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "Target": "Self",

            "OnAdded": [

                {

                    "$type": "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType": 1,

                    "ParamName": "Trigger_Die",

                    "Target": "Self",

                    "BoolVal": true,

                },

            ],

            "OnDeadHandler": [

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Box_Explode_03",

                    "Target": "Self",

                },

                {

                    "$type": "MoleMole.FireAudio",

                    "AudioPattern": "Play_WoodBox_Break_Mid",

                },

            ]

        },

        "BoxLarge01Modifier": {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "Target": "Self",

            "OnAdded": [

                {

                    "$type": "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType": 1,

                    "ParamName": "Trigger_Die",

                    "Target": "Self",

                    "BoolVal": true,

                },

            ],

            "OnDeadHandler": [

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Box_Explode_04",

                    "Target": "Self",

                },

                {

                    "$type": "MoleMole.FireAudio",

                    "AudioPattern": "Play_WoodBox_Break_Heavy",

                },

            ]

        },

        "BoxLarge02Modifier": {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "Target": "Self",

            "OnAdded": [

                {

                    "$type": "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType": 1,

                    "ParamName": "Trigger_Die",

                    "Target": "Self",

                    "BoolVal": true,

                },

            ],

            "OnDeadHandler": [

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Box_Explode_05",

                    "Target": "Self",

                },

                {

                    "$type": "MoleMole.FireAudio",

                    "AudioPattern": "Play_WoodBox_Break_Heavy",

                },

            ]

        },

        "BoxExLarge01Modifier": {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "Target": "Self",

            "OnAdded": [

                {

                    "$type": "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType": 1,

                    "ParamName": "Trigger_Die",

                    "Target": "Self",

                    "BoolVal": true,

                },

            ],

            "OnDeadHandler": [

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Box_Explode_06",

                    "Target": "Self",

                },

                {

                    "$type": "MoleMole.FireAudio",

                    "AudioPattern": "Play_WoodBox_Break_Heavy",

                },

            ]

        },

        "BoxExLarge02Modifier": {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "Target": "Self",

            "OnAdded": [

                {

                    "$type": "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType": 1,

                    "ParamName": "Trigger_Die",

                    "Target": "Self",

                    "BoolVal": true,

                },

            ],

            "OnDeadHandler": [

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Box_Explode_07",

                    "Target": "Self",

                },

                {

                    "$type": "MoleMole.FireAudio",

                    "AudioPattern": "Play_WoodBox_Break_Heavy",

                },

            ]

        },

    }

}