{

    "AbilityName" : "Mandrake_ATK01_ATK",

    "AbilityStacking":"Unique",



    "OnAbilityStart" :

    [

        {

            "$type": "MoleMole.ApplyModifier",

            "ModifierName": "FieldRangeModifier",

            "Target" : "Self"

        },

    ],



    "Modifiers" :

    {



        "FieldRangeModifier" :

        {

            "ModifierStacking" : "MultipleRefresh",

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



            "ModifierMixins" : 

            [

                {

                    "$type": "MoleMole.FieldRangeMixin",

                    "TotalDuration": 99999, //有效时长

                    "LoopEffectPattern": "Eff_Bangboo_Field_Electric_Start",

                    "EndEffectPattern": "Eff_Bangboo_Field_Electric_End",

                    "IsFollow": true,

                    

                    //力场初始位置

                    "FieldInitPosRot" : 

                    {

                        "CoordsOption" : "Self",

                        "NeedRaycastGround": true,

                        "TargetrgetOption" : 

                        {

                            "$type" : "MoleMole.ConfigPosRotReferTarget",

                            "OffsetReferTarget" : "Self",

                        },



                        "Offset" : 

                        {

                        

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

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

            

                        "IsUseRotationY" : false,

                        "IsUseRotationXZ" : false,

                        },

                    },





                    "ColliderConfig":

                    {

                        "ColliderType" : "FanCylinder",

                        "FanCylinderColliderRadius" : 5,

                        "FanCylinderColliderHeight" : 10,

                        "FanCylinderColliderAngle" : 360,

                        "FanCylinderColliderVertexNum" :24,

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

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

                    },



                    //进入时

                    "FieldEnterActions":

                    [

                        {

                            "$type": "MoleMole.ApplyModifier",

                            "ModifierName": "BuffModifier",

                            "Target" : "Target",

                            "Predicates": 

                            [

                                {

                                    "$type": "MoleMole.ByRelativeCampType",

                                    "Relationship": "Enemy",

                                    "Target" : "Target",

                                },

                            ]

                        }

                    ],



                    //退出时

                    "FieldExitActions":

                    [

                        {

                            "$type": "MoleMole.RemoveModifier",

                            "ModifierName": "BuffModifier",

                            "Target" : "Target",

                            "Predicates": 

                            [

                                {

                                    "$type": "MoleMole.ByRelativeCampType",

                                    "Relationship": "Enemy",

                                    "Target" : "Target",

                                },

                            ]

                        }

                    ],

                }

            ],



        },

        



        

        "BuffModifier":

        {

            "Duration": -1,

            "IgnoreTimeScale" : false, //Buff必须配置IgnoreTimeScale



            "Buff": 

                {

                    "BuffID" : 1000004,

                    "IsOverrideDuration" : true

                }

        },



    }



}

    





