{ "AbilityName": "XiaoZhao_MathSkill", "AbilitySpecials": { "AS_AdddamageHpRatio": { "Value": 12 }, "AS_AddedDamageBase": { "Value": 0.05 }, "AS_AddedDamageCal": { "Value": 0 }, "AS_AddedDamageFinal": { "Value": 0 }, "AS_AddedDamageMax": { "Value": 0.2 }, "AS_HpMaxInterval": { "Value": 100 }, "AS_HpMaxRequire": { "Value": 0.2 } }, "AbilityStacking": "Unique", "DefaultModifier": { "ModifierMixins": [ { "$type": "AttachZoneTagWithModifierMixin", "ConfigList": [ { "ModifierNameList": [ "ControlModifier" ], "ZoneTag": "ThemeSpace" } ] } ], "OnAdded": [ { "$type": "BranchOperator", "Conditions": [ { "$type": "ByPlayerPropertyValue", "CompareType": "GreaterEqual", "Numerator": "HpMax_Base", "Val1": "%AS_HpMaxRequire" } ], "FailureActions": [ { "$type": "SetAbilitySpecialByExpression", "DoRefresh": true, "Expression": "specials(AS_AddedDamageBase)", "ParamName": "AS_AddedDamageCal" } ], "SuccessActions": [ { "$type": "SetAbilitySpecialByExpression", "DoRefresh": true, "Expression": "specials(AS_AddedDamageBase)+(property(HpMax_Base)-specials(AS_HpMaxRequire))*specials(AS_AdddamageHpRatio)\/specials(AS_HpMaxInterval)", "ParamName": "AS_AddedDamageCal" } ] }, { "$type": "SetAbilitySpecialByExpression", "DoRefresh": true, "Expression": "min(specials(AS_AddedDamageCal),specials(AS_AddedDamageMax))", "ParamName": "AS_AddedDamageFinal" } ] }, "Modifiers": { "ControlModifier": { "ModifierMixins": [ { "$type": "WatchEntityMixin", "EntityTypes": [ "Avatar" ], "OnEntityAwaked": [ { "$type": "ApplyModifier", "ModifierName": "EnhanceModifier", "Predicates": [ { "$type": "ByMathSkillSuccess" } ], "Target": "TeamAvatars" } ], "Relationships": [ "Allied" ] } ], "OnAdded": [ { "$type": "ApplyModifier", "ModifierName": "EnhanceModifier", "Predicates": [ { "$type": "ByMathSkillSuccess" } ], "Target": "TeamAvatars" } ], "OnRemoved": [ { "$type": "RemoveModifier", "ModifierName": "EnhanceModifier", "Target": "TeamAvatars" } ] }, "EnhanceModifier": { "Duration": -1, "ModifierStacking": "Unique", "Properties": { "Actor_AddedDamageRatio": "%AS_AddedDamageFinal" } } } }