{ //受到攻击后,触发反击 "AbilityName" : "Golem_Ability_BeatBack", "AbilityStacking":"Unique", "AbilityMixins" : [ { "$type" : "MoleMole.AttachStateWithModifierMixin", "ConfigList": [ { "LayerIndex": 0, "AnimatorStateName": "Hit_InDefence", "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "ModifierNameList": [ "Golem_Ability_BeatBack", ] } ] } ], "Modifiers" : { //反击检测器 "Golem_Ability_BeatBack": { "ModifierStacking" : "Unique", "Duration": -1, "OnBeingHit" : [ // { // "$type":"MoleMole.SetAbilitySpecialAction", // "ParamName":"DefenceBlockCount", // "ModifyFunction" : "Add", // "Param": 1, // "ParamType":"int" // }, { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_AttackIndex", "IntVal" : 6, "Target" : "Self", }, { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 1, "ParamName" : "Trigger_PressAttackA", "BoolVal" : true, "Target" : "Self" }, ], // "OnRemove" : // [ // { // "$type":"MoleMole.SetAbilitySpecialAction", // "ParamName":"DefenceBlockCount", // "ModifyFunction" : "Replace", // "Param": 0, // "ParamType":"int" // } // ] } }, // "AbilitySpecials" : // { // //内部计数 // "DefenceBlockCount" ://防御格挡计次 // { // "Value" : 0 // }, // } }