{

    "AbilityName" : "Mandrake_ATK03",

    "AbilityStacking":"Unique",



    "OnAbilityStart" : 

    [

        {

            "$type": "MoleMole.SetAnimCtrlerParamAction",

            "ParamType" : 3,

            "ParamName" : "Int_AttackIndex",

            "Target" : "Self",

            "IntVal" : 3,

        },

        {

            "$type" : "MoleMole.SetAnimCtrlerParamAction",

            "ParamType" : 1,

            "ParamName" : "Trigger_PressAttackA",

            "Target" : "Self",

            "BoolVal" : true,

        },

        {

            "$type": "MoleMole.FireEffect",

            "EffectPattern": "Eff_Avatar_LevelUp_02",

            "Target": "Self",

        }

    ],



    "DefaultModifier": 

    {

        "OnAdded": 

        [

            {

                "$type": "MoleMole.ApplyModifier",

                "ModifierName": "Mandrake_ATK03_HitListener",

                "Target": "Self"

            }

        ]

    },



    "Modifiers":

    {

        "Mandrake_ATK03_HitListener": 

        {

            "ModifierStacking": "Unique",

            "Duration": -1,



            "OnBeingHit": 

            [

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "Mandrake_ATK03_CounterAttack",

                    "Target": "Self",

                    "Predicates": 

                    [

                        {

                            "$type": "MoleMole.ByDistance",

                            "Distance": 5,

                            "Target": "Self",

                            "CompareType": "LessEqual",

                            "CompareTarget": "Target"

                        },

                        {

                            "$type": "MoleMole.ByIsInZoneTags",

                            "Target": "Self",

                            "Tags": 

                            [

                                "Mandrake_CounterReady",

                            ]

                        },

                        {

                            "$type": "MoleMole.BySkillReady",

                            "SkillName": "Monster_Mandrake_ATK03",

                            "Target": "Self",

                        }

                    ]

                }

            ]

        },



        "Mandrake_ATK03_CounterAttack": 

        {

            "ModifierStacking": "Replace",

            "Duration": 1.0,



            "OnAdded": 

            [

                {

                    "$type": "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType" : 3,

                    "ParamName" : "Int_AttackIndex",

                    "Target" : "Self",

                    "IntVal" : 3,

                },

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType" : 1,

                    "ParamName" : "Trigger_PressAttackA",

                    "Target" : "Self",

                    "BoolVal" : true,

                },

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Avatar_LevelUp_02",

                    "Target": "Self",

                }

            ]

        }

    }        

}