{

	//比利天赋02：比利的入场攻击命中敌人可以回复能量，连携技1个打击帧恢复0.3点，最多可以恢复10点SP;支援技1个打击帧恢复0.2点，最多可以恢复3点SP

	"AbilityName": "Billy_Talent_02",

	"AbilityStacking": "Unique",



	"DefaultModifier": 

	{

		"OnAdded": 

		[

			{

				"$type": "MoleMole.SetAnimCtrlerParamAction",

				"ParamType": 2,

				"ParamName": "Bool_Talent_02",

				"Target": "Self",

				"BoolVal": true

			}

		]

	},



	"AbilityMixins": 

	[

		{

			"$type": "MoleMole.AttachStateWithModifierMixin",

			"ConfigList": 

			[

				//AidAttack攻击

				{

					"AnimatorStateName": "Attack_Counter",

					"LayerIndex": 0,

					"Target": "Self",

					"NormalizedTimeLow": 0.0,

					"NormalizedTimeHigh": 1.0,

					"ModifierNameList": 

					[

						"BillyAidTalent02Modifier"

					]

				},

				//QTE攻击

				{

					"AnimatorStateName": "SwitchIn_Attack",

					"LayerIndex": 0,

					"Target": "Self",

					"NormalizedTimeLow": 0.0,

					"NormalizedTimeHigh": 1.0,

					"ModifierNameList": 

					[

						"BillyQTETalent02Modifier"

					]

				}

			]

		}

	],



	"Modifiers": 

	{

		//通过支援攻击入场后，若攻击命中敌人可回复能量

		"BillyAidTalent02Modifier": 

		{

			"ModifierStacking": "Unique",

			"Duration": -1,

			"IgnoreTimeScale": false,



			//初始化能量回复值

			"OnAdded": 

			[

				{

					"$type": "MoleMole.ModifyProperty",

					"PropertyType": "Custom",

					"CustomPropertyType": "Talent02SpRecover_Aid",

					"IsUsePercentage": false,

					"PropertyModifyFunction": "Replace",

					"Percentage": 0,

					"Amount": 0

				}

			],



			"OnHitOther": 

			[

				{

					"$type": "MoleMole.ModifyProperty",

					"PropertyType": "Custom",

					"CustomPropertyType": "Talent02SpRecover_Aid",

					"IsUsePercentage": false,

					"PropertyModifyFunction": "Add",

					"Percentage": 0,

					"Amount": "%AS_AidRecoverSp_Talent_02",

					"Predicates": 

					[

						{

							"$type": "MoleMole.ByAnimCtrlerParam",

							"ParamType": 3,

							"ParamName": "Int_SwitchType_In",

							"CompareType": "Equal",

							"IntVal": 30

						},

						{   

							"$type" : "MoleMole.ByAnimTagList",

							"TagList" : 

							[

								"Counter"

							]

						}

					]

				}

			],



			"OnRemoved": 

			[

				//Aidattack播放完将Int_SwitchType_In归0，以免普通counter也触发效果

				{

					"$type": "MoleMole.SetAnimCtrlerParamAction",

					"ParamType": 3,

					"ParamName": "Int_SwitchType_In",

					"Target": "Self",

					"IntVal": 0

				},

				//将储存的应回复值保存至AbilitySpecial

				{

					"$type": "MoleMole.SetAbilitySpecialsByPropertyAction",

					"Target": "Self",

					"ParamName": "SpRecoverTemp_Aid",

					"ModifyFunction": "Replace",

					"PropertyType": "Custom",

					"CustomPropertyType": "Talent02SpRecover_Aid",

					"Percentage": 1.0

				},

				//进行能量回复

				{

					"$type": "MoleMole.RecoverSPAction",

					"Target": "Self",

					"Percentage": 0,

					"Amount": "%SpRecoverTemp_Aid",

					"IgnoreRatio": false

				}

			]

		},



		//通过QTE后，若攻击命中敌人可回复能量

		"BillyQTETalent02Modifier": 

		{

			"ModifierStacking": "Unique",

			"Duration": -1,

			"IgnoreTimeScale": false,



			//初始化能量回复值

			"OnAdded": 

			[

				{

					"$type": "MoleMole.ModifyProperty",

					"PropertyType": "Custom",

					"CustomPropertyType": "Talent02SpRecover_QTE",

					"IsUsePercentage": false,

					"PropertyModifyFunction": "Replace",

					"Percentage": 0,

					"Amount": 0

				}

			],



			"OnHitOther": 

			[

				{

					"$type": "MoleMole.ModifyProperty",

					"PropertyType": "Custom",

					"CustomPropertyType": "Talent02SpRecover_QTE",

					"IsUsePercentage": false,

					"PropertyModifyFunction": "Add",

					"Percentage": 0,

					"Amount": "%AS_QTERecoverSp_Talent_02",

					"Predicates": 

					[

						{   

							"$type" : "MoleMole.ByAnimTagList",

							"TagList" : 

							[

								"NormalQTE"

							]

						}

					]

				}

			],



			"OnRemoved": 

			[

				//将储存的应回复值保存至special

				{

					"$type": "MoleMole.SetAbilitySpecialsByPropertyAction",

					"Target": "Self",

					"ParamName": "SpRecoverTemp_QTE",

					"ModifyFunction": "Replace",

					"PropertyType": "Custom",

					"CustomPropertyType": "Talent02SpRecover_QTE",

					"Percentage": 1.0

				},

				//进行能量回复

				{

					"$type": "MoleMole.RecoverSPAction",

					"Target": "Self",

					"Percentage": 0,

					"Amount": "%SpRecoverTemp_QTE",

					"IgnoreRatio": false

				}

			]

		}

	},



	"AbilitySpecials": 

	{

		//aidattack每命中1次敌人回复,最多回复3点

		"AS_AidRecoverSp_Talent_02": 

		{

			"Value": 1

		},



		//QTE每命中1次敌人回复，最多生效10点

		"AS_QTERecoverSp_Talent_02": 

		{

			"Value": 1

		},



		//暂存用参数

		"SpRecoverTemp_Aid": 

		{

			"Value": 0

		},



		"SpRecoverTemp_QTE": 

		{

			"Value": 0

		}

	}

}