{

    "AbilityName" : "Bangboo_Eous001_Skill_Field_Weaken",

    "AbilityStacking":"Unique",



    "DefaultModifier" : 

    {

        "OnAdded" :

        [

            {

                "$type": "MoleMole.ApplyModifier",

                "ModifierName": "QTEListenerModifier",

                "Target" : "TeamAvatars"

            },

            {

                "$type": "MoleMole.ApplyModifier",

                "ModifierName": "TriggerFieldModifier",

                "Target" : "Self"

            },

        ]

    },

    

    "OnAbilityStart":

    [

        {

            "$type": "MoleMole.DitherFadeAction",

            "DitherFadeType": "FadeIn",

            "DitherFadeKey": "Bangboo_Dither_Alpha_FadeIn",

            "Duration": 0.3,

            "Target" : "Self"

        },

        {

            "$type": "MoleMole.ApplyLogicMoveAction",

            "Target": "Self",



            "MovementConfig" :

            {

                "$type" : "MoleMole.ConfigMovementTarget",

                "Duration" : 0.1,

                "Gravity" : 0.0,

                "HitTangentialRatio" : 1,

                "HitNormalRatio" : 1,

                "TimesUpMoveOption" : "Stop",

                "TargetPosRot" : 

                {

                    "CoordsOption" : "Camera",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "LocalAvatar"

                    },

                    "Offset" : 

                    {

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

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

                        "IsClampOffsetDistance" : false

                    }

                },

                "DefaultOffset" : {"x":0.0, "y":0.0, "z":5.0},



                "MoveType":

                {

                    "$type" : "MoleMole.MovementTypeInstant"

                },



                "TargetUpdateMode" : "Always",

                "ReachTargetStop" : true

            },

            

            "RotationConfig" :

            {   

                "$type" : "MoleMole.ConfigRotationToTarget",

                "Duration" : 0.1,

                "TargetPosRot" : 

                {

                    "CoordsOption" : "Camera",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "Self"

                    },

                    "Offset" : 

                    {

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

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

                    }

                },

                "RotateType" : "Instant",

                "RotateSpeed" : 1,

                "TargetUpdateMode" : "Always",

                "ReachTargetStop" : false

            }

        },

        {

            "$type" : "MoleMole.SetAnimCtrlerParamAction",

            "ParamType" : 3,

            "ParamName" : "Int_AttackIndex",

            "IntVal" : 41,

            "Target" : "Self",

        },

        {

            "$type" : "MoleMole.SetAnimCtrlerParamAction",

            "ParamType" : 1,

            "ParamName" : "Trigger_PressAttackB",

            "BoolVal" : true,

            "Target" : "Self"

        }

    ],



    "Modifiers" :

    {

        "QTEListenerModifier" : 

        {

            "ModifierStacking" : "Unique",

            "Duration" : -1,



            "OnSkillStart":

            [

                {

                    "$type" : "MoleMole.TriggerAbilityAction",

                    "AbilityName" : "Bangboo_Eous001_Skill_Field_Weaken",

                    "Target" : "Caster",

                    "Predicates" :

                    [

                        {

                            "$type": "MoleMole.ByFromSkillType",

                            "SkillType": "ExSp",

                            "Target": "Self",

                        },

                        {

                            "$type": "MoleMole.BySkillReady",

                            "SkillName": "Bangboo_Eous001_Skill_Field_Weaken",

                            "Target": "Caster",

                        },

                        {

                            "$type": "MoleMole.ByNot",

                            "Predicates": 

                            [

                                {

                                    "$type": "MoleMole.ByIsInZoneTags",

                                    "Tags" : 

                                    [

                                        "Disabled",

                                    ],

                                    "Target": "Caster",

                                },

                            ]

                        }

                    ]

                }

            ],

        },



        "TriggerFieldModifier" : 

        {

            "ModifierStacking" : "Unique",

            "Duration" : -1,



            "ModifierMixins" : 

            [

                {

                    "$type" : "MoleMole.AttachStateWithModifierMixin",

                    "ConfigList":

                    [

                        {

                            "AnimatorStateName": "Skill_Field_Weaken_Start",

                            "LayerIndex": 0,

                            "NormalizedTimeLow": 0.4,

                            "NormalizedTimeHigh": 1.0,

                            "ModifierNameList":

                            [

                                "FieldRangeModifier",

                            ], 

                        },

                        {

                            "AnimatorStateName": "Skill_Field_Weaken_Loop",

                            "LayerIndex": 0,

                            "NormalizedTimeLow": 0.0,

                            "NormalizedTimeHigh": 1.0,

                            "IsLoop": true,

                            "ModifierNameList":

                            [

                                "FieldRangeModifier",

                            ], 

                        },

                    ],

                }, 

            ],

        },



        "FieldRangeModifier" : 

        {

            "ModifierStacking" : "MultipleRefresh",

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

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

            "IgnoreTimeScale" : false,



            "OnAdded" :

            [

                //发动技能

                {

                    "$type": "MoleMole.SkillStartAction",

                    "StartedSkillName": "Bangboo_Eous001_Skill_Field_Weaken",

                    "Target" : "Self"

                },

                //力场发动期间，力场技能CD暂停读秒

                {

                    "$type": "MoleMole.PauseSkillCDAction",

                    "Target" : "Self",

                    "IsPause": true,

                    "SkillNames": 

                    [

                        "Bangboo_Eous001_Skill_Field_Weaken"

                    ],

                },

                //添加ShaderMatCap表现

                {

                    "$type" : "MoleMole.ApplyMatCapAction",

                    "MatCapKey" : "Bangboo_Field_Weaken_ShaderMatCap_Start",

                    "Target" : "Self",

                },

            ],



            "ModifierMixins" : 

            [

                {

                    "$type": "MoleMole.FieldRangeMixin",

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



                    //"StartEffectPattern": "Eff_Bangboo_Field_Electric_Start",

                    "LoopEffectPattern": "Eff_Bangboo_Field_Electric_Start",

                    "EndEffectPattern": "Eff_Bangboo_Field_Electric_End",

                    "IsFollow": true,

                    

                    //力场初始位置

                    "FieldInitPosRot" : 

                    {

                        "CoordsOption" : "Self",

                        "NeedRaycastGround": true,

                        //"RaycastGroundOffset": 0.0,

                        "TargetOption" : 

                        {

                            "$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",

                                },

                            ]

                        }

                    ],



                    //结束时

                    "FieldStopActions":

                    [

                        {

                            "$type" : "MoleMole.SetAnimCtrlerParamAction",

                            "ParamType" : 1,

                            "ParamName" : "Trigger_FieldEnd",

                            "BoolVal" : true,

                            "Target" : "Self"

                        }

                    ],

                }

            ],



            "OnRemoved" :

            [

                //力场技能CD开始读秒

                {

                    "$type": "MoleMole.PauseSkillCDAction",

                    "Target" : "Self",

                    "IsPause": false,

                    "SkillNames": 

                    [

                        "Bangboo_Eous001_Skill_Field_Weaken"

                    ],

                },

                //移除ShaderMatCap表现

                {

                    "$type" : "MoleMole.RemoveMatCapAction",

                    "MatCapKey" : "Bangboo_Field_Weaken_ShaderMatCap_Start",

                    "Target" : "Self",

                },

            ],

        },

        

        "BuffModifier":

        {

            "Duration": -1,

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



            "Buff" : 

            {

                "BuffID" : 1000004,

                "IsOverrideDuration" : true

            }

        },

    }

}