{

	//完美闪避可减缓时间流逝，敌人的动作会被减速，持续3秒



    "AbilityName" : "Common_WitchTime",

    "AbilityStacking": "Unique",

    //控制本Ability加Modifier

    "OnAbilityStart": 

    [

        {

            "$type":"MoleMole.ApplyModifier",

            "ModifierName":"WitchModifier",

            "Target":"TeamAvatars"

        },

        {

            "$type":"MoleMole.ApplyModifier",

            "ModifierName":"CameraModeModifier",

            "Target":"TeamAvatars"

        },

        {

            "$type":"MoleMole.ApplyModifier",

            "ModifierName":"SpecialEffectModifier",

            "Target":"TeamAvatars"

        }

    ],

    "AbilityMixins" :

    [

        //监听动画，切换镜头

        {

            "$type" : "MoleMole.AttachStateWithModifierMixin",

            "ConfigList":

            [

                {

                    "LayerIndex": 0,

                    "AnimatorStateName": "Idle",

                    "NormalizedTimeLow": 0.0,

                    "NormalizedTimeHigh": 1.0,

                    "ModifierNameList":

                    [

                        "RemoveWitchModeModifier"

                    ]

                },

                {

                    "LayerIndex": 0,

                    "AnimatorStateName": "Evade_Front",

                    "NormalizedTimeLow": 0.0,

                    "NormalizedTimeHigh": 1.0,

                    "ModifierNameList":

                    [

                        "CameraModeModifier"

                    ]

                },

                {

                    "LayerIndex": 0,

                    "AnimatorStateName": "Evade_Front_02",

                    "NormalizedTimeLow": 0.0,

                    "NormalizedTimeHigh": 1.0,

                    "ModifierNameList":

                    [

                        "CameraModeModifier"

                    ]

                },

                {

                    "LayerIndex": 0,

                    "AnimatorStateName": "Run_Start",

                    "NormalizedTimeLow": 0.0,

                    "NormalizedTimeHigh": 1.0,

                    "ModifierNameList":

                    [

                        "CameraModeModifier"

                    ]

                },

                {

                    "LayerIndex": 0,

                    "AnimatorStateName": "Run_Loop",

                    "NormalizedTimeLow": 0.0,

                    "NormalizedTimeHigh": 1.0,

                    "IsLoop": true,

                    "ModifierNameList":

                    [

                        "CameraModeModifier"

                    ]

                }

            ]

        }

    ],

    "Modifiers" : 

    {

        //特效处理

        "SpecialEffectModifier": 

        {

            "ModifierStacking" : "Unique",

            "Duration": -1,

            "IgnoreTimeScale" : true,

            "OnAdded":

            [

                {

                    "$type": "MoleMole.AttachEffect",

                    "EffectPattern": "Eff_speed_line_Test",

                    "Target": "Self",

                    "AttachEffectPosRot" : 

                    {

                        "CoordsOption" : "Self",

                        "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" : true,

                            "IsUseRotationXZ" : true

                        }

                    }

                }

            ]

        },

        //镜头处理

        "CameraModeModifier": 

        {

            "ModifierStacking" : "Unique",

            "Duration": -1,

            "IgnoreTimeScale" : true,

            //添加

            "OnAdded":

            [

                {

                    "$type" : "MoleMole.ApplyModifier",

                    "ModifierName" : "SpecialEffectModifier",

                    "Target" : "Self",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByAbilitySpecial",

                            "ParamName": "IsInWitchState",

                            "Target": "Self",

                            "ParamType": "int",

                            "CompareType": "Equal",

                            "Param" : 1

                        }

                    ]

                },

                {

                    "$type" : "MoleMole.CameraMoveModeAction",

                    "camMoveMode" : "HexMovementRotate",

                    "delayTime" : 0,

                    "durationTime" : -1,

                    "ingoreTimeScale" : true,

                    "dataPriority" : 20,

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByAbilitySpecial",

                            "ParamName": "IsInWitchState",

                            "Target": "Self",

                            "ParamType": "int",

                            "CompareType": "Equal",

                            "Param" : 1

                        }

                    ]

                },

                {

                    "$type" : "MoleMole.CameraZoomAction",

                    "ZoomConfigKey" : "HoldEvade_CamZoom_ModeSwitch_01",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByAbilitySpecial",

                            "ParamName": "IsInWitchState",

                            "Target": "Self",

                            "ParamType": "int",

                            "CompareType": "Equal",

                            "Param" : 1

                        }

                    ]

                },

                {

                    "$type" : "MoleMole.CameraStretchAction",

                    "StretchConfigKey" : "HoldEvade_CamStretch_ModeSwitch_01",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByAbilitySpecial",

                            "ParamName": "IsInWitchState",

                            "Target": "Self",

                            "ParamType": "int",

                            "CompareType": "Equal",

                            "Param" : 1

                        }

                    ]

                }

            ],

            //移除

            "OnRemoved":

            [

                {

                    "$type" : "MoleMole.RemoveModifier",

                    "ModifierName" : "SpecialEffectModifier",

                    "Target" : "Self"

                },

                {

                    "$type" : "MoleMole.CameraMoveModeAction",

                    "camMoveMode" : "HexOrbitDefault",

                    "delayTime" : 0,

                    "durationTime" : -1,

                    "ingoreTimeScale" : true,

                    "dataPriority" : 20,

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByAbilitySpecial",

                            "ParamName": "IsInWitchState",

                            "Target": "Self",

                            "ParamType": "int",

                            "CompareType": "Equal",

                            "Param" : 1

                        }

                    ]

                },

                {

                    "$type" : "MoleMole.CameraZoomAction",

                    "ZoomConfigKey" : "HoldEvade_CamZoom_ModeSwitch_02",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByAbilitySpecial",

                            "ParamName": "IsInWitchState",

                            "Target": "Self",

                            "ParamType": "int",

                            "CompareType": "Equal",

                            "Param" : 1

                        }

                    ]

                },

                {

                    "$type" : "MoleMole.CameraStretchAction",

                    "StretchConfigKey" : "HoldEvade_CamStretch_ModeSwitch_02",

                    "Predicates" :

                    [

                        {

                            "$type" : "MoleMole.ByAbilitySpecial",

                            "ParamName": "IsInWitchState",

                            "Target": "Self",

                            "ParamType": "int",

                            "CompareType": "Equal",

                            "Param" : 1

                        }

                    ]

                }

            ]

        },

        //移除魔女时间

        "RemoveWitchModeModifier": 

        {

            "ModifierStacking" : "Unique",

            "Duration": -1,

            "IgnoreTimeScale" : true,

            "DelayHandlers" :

            [

                {  

                    "DelayTime" : 0.1,

                    "TimeUpActions":

                    [

                        {

                            "$type" : "MoleMole.RemoveModifier",

                            "ModifierName" : "WitchModifier",

                            "Target" : "Self"

                        }

                    ]

                }

            ]

        },

        //魔女时间 无限

        "WitchModifier": 

        {

            "ModifierStacking": "RefreshByLongTime",

            "Duration": "%DurationTime",

            "IgnoreTimeScale" : false,

            "NotIgnoreList" : ["World"],

            //短暂小无敌

            // "OnAdded":

            // [

            //     {

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

            //         "ModifierName" : "InvincibleBuffModifier",

            //         "Target" : "Self"

            //     }

            // ],

            "ModifierMixins":

            [

                //魔女时间Mixin

                {

                    "$type" : "MoleMole.WitchSlowDownMixin",

                    "TotalDuration" : -1,

                    "SlowDownKey" : "HoldEvade_TimeSlow_01",

                    "ExcludeTargets" : "TeamAvatars",

                    "OnStart":

                    [

                        {

                            //给角色增加伤害倍率的Modifier

                            "$type":"MoleMole.ApplyModifier",

                            "ModifierName":"AddedDamageRatioModifier",

                            "Target":"Self"

                        },

                        {

                            "$type" : "MoleMole.CameraMoveModeAction",

                            "camMoveMode" : "HexMovementRotate",

                            "delayTime" : 0,

                            "durationTime" : -1,

                            "ingoreTimeScale" : true,

                            "dataPriority" : 20

                        },

                        {

                            "$type": "MoleMole.ModifyMassRatioAction",

                            "Ratio": -0.99,

                            "Target": "Self"

                        },

                        {

                            "$type": "MoleMole.SetAbilitySpecialAction",

                            "ParamName": "IsInWitchState",

                            "ParamType": "int",

                            "ModifyFunction": "Replace",

                            "Param": 1

                        },

                        {

                            "$type" : "MoleMole.ApplyModifier",

                            "ModifierName" : "CameraModeModifier",

                            "Target" : "Self"

                        },

                        {

                            "$type" : "MoleMole.ApplyModifier",

                            "ModifierName" : "SpecialEffectModifier",

                            "Target" : "Self"

                        },

                        {  

                            "$type" : "MoleMole.FireEffect",

                            "EffectPattern" : "Eff_Common_Evade_Front",

                            "Target" : "Self"

                        },

                        {

                            "$type" : "MoleMole.ProcessScreenEffectAction",

                            "EffectType" : "Vignette",

                            "EffectKey" : "HoldEvade_Vignette_01"

                        },

                        {

                            "$type" : "MoleMole.ProcessScreenEffectAction",

                            "EffectType" : "RadialBlur",

                            "EffectKey" : "HoldEvade_RadialBlur_01"

                        },

                        {

                            "$type" : "MoleMole.CameraZoomAction",

                            "ZoomConfigKey" : "HoldEvade_CamZoom_01"

                        },

                        {

                            "$type" : "MoleMole.CameraStretchAction",

                            "StretchConfigKey" : "HoldEvade_CamStretch_01"

                        },

                        {

                            "$type" : "MoleMole.CameraLookAtOffsetEndAction"

                        },

                        {

                            "$type" : "MoleMole.TimeSlowByConfigKeyAction",

                            "ConfigKey" : "HoldEvade_TimeSlow_02",

                            "IsGlobal" : false,

                            "Target":"Self"

                        }

                    ],

                    "OnEnd":

                    [

                        {

                            //给角色移除伤害倍率的Modifier

                            "$type":"MoleMole.RemoveModifier",

                            "ModifierName":"AddedDamageRatioModifier",

                            "Target":"Self"

                        },

                        {

                            "$type" : "MoleMole.CameraMoveModeEndAction",

                            "dataPriority" : 20,

                            "dataClearPriority":"SamePriority"

                        },

                        {

                            "$type": "MoleMole.ModifyMassRatioEndAction",

                            "Target": "Self"

                        },

                        {

                            "$type": "MoleMole.SetAbilitySpecialAction",

                            "ParamName": "IsInWitchState",

                            "ParamType": "int",

                            "ModifyFunction": "Replace",

                            "Param": 0

                        },

                        {

                            "$type" : "MoleMole.RemoveModifier",

                            "ModifierName" : "CameraModeModifier",

                            "Target" : "Self"

                        },

                        {

                            "$type" : "MoleMole.InterruptScreenEffectAction",

                            "EffectType" : "Vignette",

                            "TargetKey" : "HoldEvade_Vignette_01"

                        },

                        {

                            "$type" : "MoleMole.InterruptScreenEffectAction",

                            "EffectType" : "RadialBlur",

                            "TargetKey" : "HoldEvade_RadialBlur_01"

                        },

                        {

                            "$type" : "MoleMole.CameraZoomEndAction",

                            "EndCameraZoomKey" : "HoldEvade_CamZoom_01"

                        },

                        {

                            "$type" : "MoleMole.CameraStretchEndAction",

                            "EndCameraStretchKey" : "HoldEvade_CamStretch_01"

                        },

                        {

                            "$type" : "MoleMole.CameraZoomEndAction",

                            "EndCameraZoomKey" : "HoldEvade_CamZoom_ModeSwitch_01"

                        },

                        {

                            "$type" : "MoleMole.CameraStretchEndAction",

                            "EndCameraStretchKey" : "HoldEvade_CamStretch_ModeSwitch_01"

                        },

                        {

                            "$type" : "MoleMole.CameraZoomEndAction",

                            "EndCameraZoomKey" : "HoldEvade_CamZoom_ModeSwitch_02"

                        },

                        {

                            "$type" : "MoleMole.CameraStretchEndAction",

                            "EndCameraStretchKey" : "HoldEvade_CamStretch_ModeSwitch_02"

                        },

                        {

                            "$type" : "MoleMole.InterruptTimeSlowAction",

                            "TargetKey" : "HoldEvade_TimeSlow_02",

                            "Target":"Self"

                        }

                    ]

                }

            ]

        },

        "AddedDamageRatioModifier":

        {

            "$type":"MoleMole.ModifyAttackDataAction",

            "PropertyKey":"Actor_AddedDamageRatio",

            "PropertyValue":"%AddedDamageRatio",

            "Target":"Self"

        }

        //短暂无敌

        // "InvincibleBuffModifier":

        // {

        //     "ModifierStacking": "MultipleRefresh",

        //     "Duration": -1,

        //     "IgnoreTimeScale" : false,



        //     "Buff":

        //     {

        //         "BuffID" : 121001,

        //         "IsOverrideDuration" : true

        //     }

        // }

    },

    "AbilitySpecials" : 

    {

        //表格参数

        "IsInWitchState" :

        {

            "Value" : 0

        },

        "DurationTime" :

        {

            "Value" : 0

        },

        "AddedDamageRatio":

        {

            "Value" : 0

        }

    }

}