{

    "AbilityName" : "RandomSkill_Follower_Magic_Storm",

    "AbilityStacking":"Unique",



    "AbilityMixins" : 

    [

        {

            //初始位置及朝向

            "$type" : "MoleMole.BulletMixin",

            "BulletName" : "Bullet_Empty",

            "Targetting" : "Enemy",

            "AliveDuration" : 10,



            "BulletInitPosRot" : 

            {

                "CoordsOption" : "Self",

                "NeedRaycastGround": true,

                "TargetOption" : 

                {

                    "$type" : "MoleMole.ConfigPosRotReferTarget",

                    "OffsetReferTarget" : "Self",

                },

                "Offset" : 

                {

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

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



                    "IsUseRotationY" : true,

                    "IsUseRotationXZ" : false,

                },

            },



            //位移

            "MovementConfig" :

            {

                "$type" : "MoleMole.ConfigMovementSimple",

                "Duration" : -1,

                "Gravity" : 0.0,

                "HitTangentialRatio" : 1,

                "HitNormalRatio" : 1,

                "TimesUpMoveOption" : "Remain",

                "TargetPosRot" : 

                {

                    "CoordsOption" : "Relative",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "Target",

                    },

                    "Offset" : 

                    {

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

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

                    },

                },

                "InitVelocity" : {"x":0, "y":0, "z":0.8},

                "Acceleration" : {"x":0, "y":0, "z":0},

                "CoordinateType" : "Local",

            },



            //向目标旋转

            "RotationConfig" :

            {   

                "$type" : "MoleMole.ConfigRotationToTarget",

                "Duration" : -1,

                "TargetPosRot" : 

                {

                    "CoordsOption" : "Relative",

                    "TargetOption" : 

                    {

                            "$type" : "MoleMole.ConfigPosRotReferTarget",

                            "OffsetReferTarget" : "Target",

                            "BackupOffsetReferTarget" : "None",

                    },

                    "Offset" : 

                    {

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

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

                    },

                },

                "RotateType" : "Fixed",

                "RotateSpeed" : 10,

                "TargetUpdateMode" : "Always",

                "ReachTargetStop" : false,

            },



            //子弹打击相关

            "BulletColliderConfig": 

            {

                "ColliderType" : "Capsule",

                "CapsuleColliderRadius" : 2.0,

                "CapsuleColliderHeight" : 4.0,

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

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

            },

            "BulletHitTypeName" : "Penetrate", //Normal为每次触碰时攻击，Penetrate为接触时持续攻击

            "HitInterval" : 0.1, //多段打击间隔（仅在Penetrate类型中生效）

            "CanHitStage" : false, //能否命中墙壁

            "MaxHitNum" : -1, //总打击次数

            "MaxHitTargetNum" : -1, //单位打击次数

            "MaxHitStageNum" : 0, //墙壁打击次数

            "MaxTouchStageNum" : 0, //墙壁反弹次数

            "HitAnimEventID" : "#RandomSkill_Follower_Magic_Storm_AttackProperty",

    

            //子弹爆炸相关

            "HitOtherExplode" : false, //命中怪物是否爆炸

            "HitStageExplode" : false, //命中墙壁是否爆炸

            "DestroyExplode" : false, //消失是否爆炸（达到最大打击次数时即为消失）

            "ExplodePosType": "HitPoint",

            "HitExplodeRadius" : 2,

            //"ExplodeAnimEventID" : "#RandomSkill_Follower_Magic_Storm_AttackProperty",



            //出生特效

            "StartEffect" : 

            {

                "EffectPattern" : "Eff_RandomSkill_Ani_Magic_Storm_Start"

            },



            //子弹特效

            "BulletEffectDelayTime": 0.3,

            "BulletEffect" : 

            {

                "EffectPattern" : "Eff_RandomSkill_Ani_Magic_Storm_Loop"

            },

    

            //摧毁特效

            "DestroyEffect" : 

            {

                "EffectPattern" : "Eff_RandomSkill_Ani_Magic_Storm_End"

            },

        }

    ],



    "DefaultModifier": 

    {

        "OnAttackLanded": 

        [

            {

                "$type": "MoleMole.ApplyModifier",

                "ModifierName": "BuffModifier",

                "Target": "Target",

                "Odd": 0.1,

                "Predicates": 

                [

                    {

                        "$type": "MoleMole.ByAnimatorEventIDs",

                        "AnimatorEventIDs": 

                        [

                            "#RandomSkill_Follower_Magic_Storm_AttackProperty"

                        ]

                    }

                ]

            }

        ]

    },



    "Modifiers": 

    {

        "BuffModifier": 

        {

            "Buff": 

            {

                "BuffID": 116002

            }

        }

    }

}