{

    //以太剑盾_新手关卡锁血演出

    "AbilityName" : "Durahan_NovicePerform",

    "AbilityStacking":"UniqueOverrideMap",



    "DefaultModifier": 

    {

        "OnAdded": 

        [

            //添加新手关卡专属的AnimEventTag

            {

                "$type": "MoleMole.HandleAnimatorZoneTagsAction",

                "Target" : "Self",

                "AnimatorStateTags": ["Novice"] ,

                "IsAdd": true ,

            },

            //触发出生动画

            {

                "$type" : "MoleMole.SetAnimCtrlerParamAction",

                "ParamType" : 3,

                "ParamName" : "Int_BornType",

                "Target" : "Self",

                "IntVal" : 3,

            },

            {

                "$type" : "MoleMole.SetAnimCtrlerParamAction",

                "ParamType" : 1,

                "ParamName" : "Trigger_Born",

                "Target" : "Self",

                "BoolVal" : true,

            },

            //开启AI

            {

                "$type" : "MoleMole.TriggerBehaviorTreeAction",

                "Target": "Self",

                "Enable": true,

            },

        ],

    },



    "OnAbilityStart":

    [

        //移动怪物位置

        {

            "$type": "MoleMole.ApplyLogicMoveAction",

            "Target": "Self",



            "MovementConfig" :

            {

                "$type" : "MoleMole.ConfigMovementTarget",

                "Duration" : 0.1,

                "Gravity" : 0.0,

                "HitTangentialRatio" : 1,

                "HitNormalRatio" : 1,

                "TimesUpMoveOption" : "Remain",

                "TargetPosRot" : 

                {

                    "CoordsOption" : "ReferTarget",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "NodePoint",

                        "NodePoint" : "MonsterPos_A1",

                    },

                    "Offset" : 

                    {

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

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

                        "IsClampOffsetDistance" : false,

                    },

                },

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



                //瞬移

                "MoveType":

                {

                    "$type" : "MoleMole.MovementTypeInstant",

                },



                "TargetUpdateMode" : "Always",

                "ReachTargetStop" : true,

            },



            "RotationConfig" :

            {   

                "$type" : "MoleMole.ConfigRotationToTarget",

                "Duration" : 0.1,

                "TargetPosRot" : 

                {

                    "CoordsOption" : "ReferTarget",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "NodePoint",

                        "NodePoint" : "MonsterPos_A1",

                    },

                    "Offset" : 

                    {

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

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

                    }

                },

                "RotateType" : "Instant",

                "RotateSpeed" : 1.0,

                "TargetUpdateMode" : "Always",

                "ReachTargetStop" : true

            }

        },



        //移动角色位置

        {

            "$type": "MoleMole.ApplyLogicMoveAction",

            "Target": "LocalAvatar",



            "MovementConfig" :

            {

                "$type" : "MoleMole.ConfigMovementTarget",

                "Duration" : 0.1,

                "Gravity" : 0.0,

                "HitTangentialRatio" : 1,

                "HitNormalRatio" : 1,

                "TimesUpMoveOption" : "Remain",

                "TargetPosRot" : 

                {

                    "CoordsOption" : "ReferTarget",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "NodePoint",

                        "NodePoint" : "PlayerPos_2",

                    },

                    "Offset" : 

                    {

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

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

                        "IsClampOffsetDistance" : false,

                    },

                },

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



                //瞬移

                "MoveType":

                {

                    "$type" : "MoleMole.MovementTypeInstant",

                },



                "TargetUpdateMode" : "Always",

                "ReachTargetStop" : true,

            },



            "RotationConfig" :

            {   

                "$type" : "MoleMole.ConfigRotationToTarget",

                "Duration" : 0.1,

                "TargetPosRot" : 

                {

                    "CoordsOption" : "ReferTarget",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "NodePoint",

                        "NodePoint" : "PlayerPos_2",

                    },

                    "Offset" : 

                    {

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

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

                    }

                },

                "RotateType" : "Instant",

                "RotateSpeed" : 1.0,

                "TargetUpdateMode" : "Always",

                "ReachTargetStop" : true

            }

        },



        //移动随从位置

        {

            "$type": "MoleMole.ApplyLogicMoveAction",

            "Target": "Buddy",



            "MovementConfig" :

            {

                "$type" : "MoleMole.ConfigMovementTarget",

                "Duration" : 0.1,

                "Gravity" : 0.0,

                "HitTangentialRatio" : 1,

                "HitNormalRatio" : 1,

                "TimesUpMoveOption" : "Remain",

                "TargetPosRot" : 

                {

                    "CoordsOption" : "ReferTarget",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "NodePoint",

                        "NodePoint" : "PlayerPos_2",

                    },

                    "Offset" : 

                    {

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

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

                        "IsClampOffsetDistance" : false,

                    },

                },

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



                //瞬移

                "MoveType":

                {

                    "$type" : "MoleMole.MovementTypeInstant",

                },



                "TargetUpdateMode" : "Always",

                "ReachTargetStop" : true,

            },



            "RotationConfig" :

            {   

                "$type" : "MoleMole.ConfigRotationToTarget",

                "Duration" : 0.1,

                "TargetPosRot" : 

                {

                    "CoordsOption" : "ReferTarget",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "NodePoint",

                        "NodePoint" : "PlayerPos_2",

                    },

                    "Offset" : 

                    {

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

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

                    }

                },

                "RotateType" : "Instant",

                "RotateSpeed" : 1.0,

                "TargetUpdateMode" : "Always",

                "ReachTargetStop" : true

            }

        },



        //屏蔽输入

        {

            "$type" : "MoleMole.InputMuteAction",

            "Tag" : "Durahan_NovicePerform_InputMute",

            "CharacterMoveMute" : false,

            "CharacterSkillMute" : false,

            "CharacterSwitchMute" : false,

            "CharacterQTEMute" : false,

            "CharacterBagMute" : false,

            "CameraMoveMute" : false,

        },

        {

            "$type" : "MoleMole.SetupUIAction",

            "SetupTag" : "Durahan_NovicePerform_SetupTag",

            "Priority" : 0,

            "IgnoreFadeAnimation" : false,

            "HideUITags" : 

            [

                "InLevelMainPage",

                "HUDContainers",

            ],

        },

        //关闭怪物与随从的AI

        {

            "$type" : "MoleMole.TriggerBehaviorTreeAction",

            "Target": "Self",

            "Enable": false,

        },

        {

            "$type" : "MoleMole.TriggerBehaviorTreeAction",

            "Target": "Buddy",

            "Enable": false,

        },

    ],



    "AbilityMixins":

    [

        //添加锁血回调

        {

            "$type": "MoleMole.LockLifePropertyMixin",

            "RatioLockList":

            [

                {

                    "LockType": "Total",

                    "LockValue": "%AS_LockLifeRatio"

                }

            ],

        },

        {

            "$type": "MoleMole.ActionsOnPropertyChangeMixin",

            "PropertyActions":

            [

                {

                    "PropertyType": "CurHP",

                    // "CustomPropertyType": "EnhanceNum",

                    "ReferMaxPropertyType": "MaxHP",

                    // "CustomReferMaxPropertyType": "MaxEnhanceNum",

                    "IsUsePercentage": true,

                    "ValueRangeActions":

                    [

                        {

                            "Val": "%AS_BreakLifeRatio",

                            "HighToValueActions":

                            [

                                {

                                    "$type":"MoleMole.ApplyModifier",

                                    "ModifierName":"ListenHitBreakModifier",

                                    "Target":"Self",

                                },

                            ],

                        },

                    ],

                },  

            ],  

        },

    ],



    "Modifiers":

    {

        //击破监听

        "ListenHitBreakModifier":

        {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "IgnoreTimeScale" : false,



            "OnBeingHitResolved" :

            [

                //触发受击表现

                {

                    "$type":"MoleMole.ApplyModifier",

                    "ModifierName":"TriggerActionModifier",

                    "Target":"Self",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByHeavyAttack",

                            "IsHeavyAttack": true,

                        },

                    ],

                },

                //逻辑旋转

                {

                    "$type": "MoleMole.ApplyLogicMoveAction",

                    "Target": "Self",

                    "RotationConfig" :

                    {

                        "$type" : "MoleMole.ConfigRotationToTarget",

                        "Duration" : 0.1,

                        "TargetPosRot" : 

                        {

                            "CoordsOption" : "Relative",

                            "TargetOption" : 

                            {

                                "$type" : "MoleMole.ConfigPosRotReferTarget",

                                "OffsetReferTarget" : "Other",

                                "BackupOffsetReferTarget" : "None"

                            },

                            "Offset" : 

                            {

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

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

                            }

                        },

                        "RotateType" : "Instant",

                        "RotateSpeed" : 1,

                        "TargetUpdateMode" : "OnStart",

                        "ReachTargetStop" : true

                    },

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByHeavyAttack",

                            "IsHeavyAttack": true,

                        },

                    ],

                },



            ],

        },



        "TriggerActionModifier":

        {

            "ModifierStacking": "Unique",

            "Duration": -1,

            "IgnoreTimeScale" : false,



            "OnAdded" :

            [

                //触发Boss相机锁定

                {

                    "$type" : "MoleMole.CameraLockOnAction",

                    "Target" : "Self",

                    "CameraLockTargetKey" : "BossPeform_CamLock_01",

                    "IsLockPermanently" : true

                },

                //触发受击动作

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType" : 1,

                    "ParamName" : "Trigger_Hit",

                    "Target" : "Self",

                    "BoolVal" : true,

                },

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType" : 1,

                    "ParamName" : "Trigger_NovicePerform",

                    "Target" : "Self",

                    "BoolVal" : true,

                },

                //进入正常状态，并重置晕值

                {

                    "$type" : "MoleMole.ModifyStunStateAction",

                    "TargetState" : "Normal",

                    "Target" : "Self",

                },

                {

                    "$type": "MoleMole.ModifyProperty",

                    "Target" : "Self",

                    "PropertyType": "CurStun", 

                    "PropertyModifyFunction": "Replace", 

                    "Percentage": 0.0,

                },

                //移除Modifier

                {

                    "$type": "MoleMole.RemoveModifier",

                    "ModifierName":"ListenHitBreakModifier",

                    "Target":"Self",

                },

                {

                    "$type": "MoleMole.RemoveModifier",

                    "ModifierName":"TriggerActionModifier",

                    "Target":"Self",

                },

            ],

        },

    },



    "AbilitySpecials" : 

    {

        "AS_LockLifeRatio" :

        {

            "Value" : 0.03,

        },



        "AS_BreakLifeRatio" :

        {

            "Value" : 0.05,

        },

    }

}