{

	//幽灵召唤及管理测试脚本（先使用TestPlayer_Ability_Tianheng_38）

    "AbilityName" : "TestPlayer_Ability_Tianheng_35",

    "AbilityStacking": "Unique",



    "DefaultModifier" :

    {

        "OnAdded" :

        [

            {

                "$type": "MoleMole.ApplyAbilityAction",

                "AbilityName": "TestPlayer_Ability_Tianheng_38",

                "IsAutoTrigger": false,

                "Target" : "Self"

            },

            {

                "$type" : "MoleMole.TriggerAbilityAction",

                "AbilityName" : "TestPlayer_Ability_Tianheng_35",

            },

        ],

    },



    "AbilityMixins" : 

    [

        {

            "$type" : "MoleMole.SummonMixin",

            "SummonType" : "Monster",

            "SummonID" : 199140411,

            "SummonDuration" : -1,

            "SummonTag" : ["UnagiGhost"],

            "TimesUpDelay" : 0,

            "OverrideDelay" : 0,



            //直接在目标点召唤

            //目前从地上飞起，是由于GhostFollowPoint_02的初始位置没有指定，需要在AttachPointFollowMixin中新增InitPosRot（2021.06.12）

            "SummonPosRot" : 

            {

                "CoordsOption" : "ReferTarget",

                "TargetOption" : 

                {

                    "$type" : "MoleMole.ConfigPosRotReferTarget",

                    //预期为Self或者Caster，但是这样配置时无法生效，需要查明（2021.06.12）

                    "OffsetReferTarget" : "LocalAvatar", //在我们的理解中，只有一个角色时，Self和LocalAvatar是一个对象，不应该有差别（然而现在有了）

                    "AttachPoint" : "GhostFollowPoint_02",

                    "IsUseAttachPointPos" : true,

                    "IsUseAttachPointRotation" : true,

                },

                "Offset" : 

                {

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

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

                    "IsUseRotationY" : true,

                    "IsUseRotationXZ" : true,

                    "IsClampOffsetDistance" : false

                }

            },



            "OnSummonCreatedActions" : 

            [

                //测试特效

                // {  

                //     "$type" : "MoleMole.FireEffect",

                //     "EffectPattern" : "Eff_Avatar_LevelUp_02",

                //     "Target" : "Target"

                // },

                {

                    "$type": "MoleMole.ApplyLogicMoveAction",

                    "Target": "Target",



                    "MovementConfig" :

                    {

                        "$type" : "MoleMole.ConfigMovementTarget",

                        "Duration" : -1,

                        "Gravity" : 0.0,

                        "HitTangentialRatio" : 1,

                        "HitNormalRatio" : 1,

                        "TimesUpMoveOption" : "Remain",

                        "TargetPosRot" : 

                        {

                            "CoordsOption" : "ReferTarget",

                            "TargetOption" : 

                            {

                                "$type" : "MoleMole.ConfigPosRotReferTarget",

                                //预期为Self或者Caster，但是这样配置时无法生效，需要查明（2021.06.12）

                                "OffsetReferTarget" : "LocalAvatar",

                                "AttachPoint" : "GhostFollowPoint_02",

                                "IsUseAttachPointPos" : true,

                                "IsUseAttachPointRotation" : true,

                            },

                            "Offset" : 

                            {

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

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

                                "IsUseRotationY" : true,

                                "IsUseRotationXZ" : true,

                                "IsClampOffsetDistance" : false

                            }

                        },

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



                        //Fixed跟随，速度过大时，有跳动

                        // "MoveType":

                        // {

                        //     "$type" : "MoleMole.MovementTypeFixedSpeed",

                        //     "Speed" : 100.0,

                        // },



                        //现在用这个Lerp，表现也挺好的，修好跳动Bug后也未必需要更改（2021.06.12）

                        "MoveType":

                        {

                            "$type" : "MoleMole.MovementTypeLerpSpeed",

                            "Speed" : 10.0,

                        },



                        //Instant跟随时，有跳动

                        // "MoveType":

                        // {

                        //     "$type" : "MoleMole.MovementTypeInstant",

                        // },



                        "TargetUpdateMode" : "Always",

                        "ReachTargetStop" : false

                    },



                    "RotationConfig" :

                    {   

                        "$type" : "MoleMole.ConfigRotationToTarget",

                        "Duration" : -1,

                        "TargetPosRot" : 

                        {

                            "CoordsOption" : "ReferTarget",

                            "TargetOption" : 

                            {

                                "$type" : "MoleMole.ConfigPosRotReferTarget",

                                //预期为Self或者Caster，但是这样配置时无法生效，需要查明（2021.06.12）

                                "OffsetReferTarget" : "LocalAvatar",

                                "AttachPoint" : "GhostFollowPoint_02",

                                "IsUseAttachPointPos" : true,

                                "IsUseAttachPointRotation" : true,

                            },

                            "Offset" : 

                            {

                                //看向目标点前方无限远处，即和目标点朝向保持一致

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

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

                                "IsUseRotationY" : true,

                                "IsUseRotationXZ" : true,

                                "IsClampOffsetDistance" : false

                            }

                        },

                        "RotateType" : "Lerp",

                        "RotateSpeed" : 10.0,

                        "TargetUpdateMode" : "Always",

                        "ReachTargetStop" : false,

                    },

                },

            ],



            "OnSummonTimesUpActions" : 

            [

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType" : 1,

                    "ParamName" : "Trigger_Die",

                    "Target" : "Target",

                    "BoolVal" : true

                }

            ],



            "OnSummonOverrideActions" : 

            [

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType" : 1,

                    "ParamName" : "Trigger_Die",

                    "Target" : "Target",

                    "BoolVal" : true

                }

            ]

        }

    ]

}