{ "AbilityName": "Vivian_AirAttackBuff", "AbilitySpecials": { "AS_AddBuffCount": { "Value": 0, "ValueType": "Integer" }, "AS_BuffCount": { "Value": 0, "ValueType": "Integer" }, "AS_BuffTime": { "Value": 30, "ValueType": "Float" }, "AS_ExtraAddedDamageRatio": { "Value": 1, "ValueType": "Float" }, "AS_PermanentAddedDamageRatio": { "Value": 0.5, "ValueType": "Float" } }, "AbilityStacking": "Unique", "DefaultModifier": { "OnHitOtherPre": [ { "$type": "ModifyAttackDataAction", "Predicates": [ { "$type": "ByAnimEventIDs", "AnimEventIDs": [ "Vivian_Attack_Branch_Air_AttackProperty_03_01", "Vivian_Attack_Branch_Air_AttackProperty_03_02", "Vivian_Attack_Branch_Air_AttackProperty_03_03", "Vivian_Attack_Branch_Air_AttackProperty_03_04", "Vivian_Attack_Branch_Air_AttackProperty_03_05", "Vivian_Attack_Branch_Air_AttackProperty_Extra" ] } ], "PropertyKey": "Actor_CanTriggerElementAbnormal", "PropertyValue": 1 } ] }, "Modifiers": { "Vivian_AirAttackBuffManager": { "Duration": 60, "IsUnique": true, "ModifierStacking": "Replace", "OnAdded": [ { "$type": "BranchOperator", "Conditions": [ { "$type": "ByAvatarIsOnStage", "IsOnStage": true } ], "FailureActions": [ { "$type": "RemoveModifier", "ModifierName": "Vivian_BuffEffect" } ], "SuccessActions": [ { "$type": "ApplyModifier", "ModifierName": "Vivian_BuffEffect" } ] } ], "OnAttackLanded": [ { "$type": "BranchOperator", "Conditions": [ { "$type": "ByHasModifier", "ModifierNameList": [ "Vivian_Mark" ] }, { "$type": "ByAnimTagList", "TagList": [ "ExSp" ] }, { "$type": "ByHeavyAttack", "IsHeavyAttack": true } ], "SuccessActions": [ { "$type": "TriggerAbilityAction", "AbilityName": "Graph_Vivian_BuffAttack_Trigger" }, { "$type": "RemoveModifier", "ModifierName": "Vivian_Mark" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Add", "Param": -1, "ParamName": "AS_BuffCount", "ParamType": "Integer" }, { "$type": "BranchOperator", "Conditions": [ { "$type": "ByAbilitySpecial", "CompareType": "Greater", "Param": 0, "ParamName": "AS_BuffCount", "ParamType": "Integer" } ], "FailureActions": [ { "$type": "RemoveModifier", "ModifierName": "Vivian_AirAttackBuffManager", "Target": "TeamAvatars" } ], "SuccessActions": [ { "$type": "ApplyModifier", "ModifierName": "Vivian_BuffEffect", "Target": "LocalAvatar" } ] } ] } ], "OnRemoved": [ { "$type": "RemoveModifier", "ModifierName": "Vivian_BuffEffect" }, { "$type": "RemoveModifier", "ModifierName": "Vivian_Mark" } ], "OnSkillStart": [ { "$type": "ApplyModifier", "ModifierName": "Vivian_Mark", "Predicates": [ { "$type": "ByFromSkillType", "SkillType": "ExSp" } ] } ], "OnSwitchInFinish": [ { "$type": "ApplyModifier", "ModifierName": "Vivian_BuffEffect" } ], "OnSwitchOutBegin": [ { "$type": "RemoveModifier", "ModifierName": "Vivian_BuffEffect" } ] }, "Vivian_BuffEffect": { "ModifierStacking": "Replace", "OnAdded": [ { "$type": "BranchOperator", "Conditions": [ { "$type": "ByOr", "Predicates": [ { "$type": "ByAbilitySpecial", "CompareType": "LessEqual", "Param": 0, "ParamName": "AS_BuffCount", "ParamType": "Integer" }, { "$type": "ByAbilitySpecial", "CompareType": "Greater", "Param": 4, "ParamName": "AS_BuffCount", "ParamType": "Integer" } ] } ], "SuccessActions": [ { "$type": "RemoveModifier", "ModifierName": "Vivian_BuffEffect", "Target": "TeamAvatars" } ] }, { "$type": "BranchOperator", "Conditions": [ { "$type": "ByAbilitySpecial", "CompareType": "Equal", "Param": 1, "ParamName": "AS_BuffCount", "ParamType": "Integer" } ], "SuccessActions": [ { "$type": "FireEffect", "EffectPattern": "Buff_Common_Recover_Loop" }, { "$type": "ModifyMaterialPropertyAction", "Tag": "Common_MA_Buff_Recover_Loop_RimGlow_01_VivianBuff", "key": "Common_MA_Buff_Recover_Loop_RimGlow_01" } ] }, { "$type": "BranchOperator", "Conditions": [ { "$type": "ByAbilitySpecial", "CompareType": "Equal", "Param": 2, "ParamName": "AS_BuffCount", "ParamType": "Integer" } ], "SuccessActions": [ { "$type": "FireEffect", "EffectPattern": "Buff_Common_Defense_Loop" }, { "$type": "ModifyMaterialPropertyAction", "Tag": "Common_MA_Buff_Defence_Loop_RimGlow_01_VivianBuff", "key": "Common_MA_Buff_Defence_Loop_RimGlow_01" } ] }, { "$type": "BranchOperator", "Conditions": [ { "$type": "ByAbilitySpecial", "CompareType": "Equal", "Param": 3, "ParamName": "AS_BuffCount", "ParamType": "Integer" } ], "SuccessActions": [ { "$type": "FireEffect", "EffectPattern": "Buff_Common_AddSp_Loop" }, { "$type": "ModifyMaterialPropertyAction", "Tag": "Common_MA_Buff_AddSp_Loop_RimGlow_01_VivianBuff", "key": "Common_MA_Buff_AddSp_Loop_RimGlow_01" } ] }, { "$type": "BranchOperator", "Conditions": [ { "$type": "ByAbilitySpecial", "CompareType": "Equal", "Param": 4, "ParamName": "AS_BuffCount", "ParamType": "Integer" } ], "SuccessActions": [ { "$type": "FireEffect", "EffectPattern": "Eff_InLevelItem_Prop_ResourceItem_01_AddExQTE_Loop" }, { "$type": "ModifyMaterialPropertyAction", "Tag": "Common_MA_Buff_Fever_Loop_RimGlow_01_VivianBuff", "key": "Common_MA_Buff_Fever_Loop_RimGlow_01" } ] } ], "OnRemoved": [ { "$type": "SpecialEffectFadeAction", "EffectNames": [ "Buff_Common_Recover_Loop", "Buff_Common_Defense_Loop", "Buff_Common_AddSp_Loop", "Eff_InLevelItem_Prop_ResourceItem_01_AddExQTE_Loop" ] }, { "$type": "InterruptMaterialPropertyAction", "Tag": "Common_MA_Buff_Recover_Loop_RimGlow_01_VivianBuff" }, { "$type": "InterruptMaterialPropertyAction", "Tag": "Common_MA_Buff_Defence_Loop_RimGlow_01_VivianBuff" }, { "$type": "InterruptMaterialPropertyAction", "Tag": "Common_MA_Buff_AddSp_Loop_RimGlow_01_VivianBuff" }, { "$type": "InterruptMaterialPropertyAction", "Tag": "Common_MA_Buff_Fever_Loop_RimGlow_01_VivianBuff" } ] }, "Vivian_Mark": { "Duration": 3 } }, "OnAbilityTrigger": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Add", "Param": "%AS_AddBuffCount", "ParamName": "AS_BuffCount", "ParamType": "Integer" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": 4, "ParamName": "AS_BuffCount", "ParamType": "Integer", "Predicates": [ { "$type": "ByAbilitySpecial", "CompareType": "Greater", "Param": 4, "ParamName": "AS_BuffCount", "ParamType": "Integer" } ] }, { "$type": "ApplyAbilityAction", "AbilityName": "Graph_Vivian_BuffAttack_Trigger", "IsAutoTrigger": false, "Target": "TeamAvatars" }, { "$type": "LogStringAction", "LogStr": "refreshbuff" }, { "$type": "ApplyModifier", "ModifierName": "Vivian_AirAttackBuffManager", "Target": "TeamAvatars" } ] }