{
  "AbilityMixins": [
    {
      "$type": "WatchEntityMixin",
      "EntityTypes": [
        "Avatar"
      ],
      "OnEntityAwaked": [
        {
          "$type": "ApplyModifier",
          "ModifierName": "ListenSwitchAidModifier_Talent_03",
          "Target": "TeamAvatars"
        }
      ],
      "Relationships": [
        "Allied"
      ]
    }
  ],
  "AbilityName": "Astra_Talent_03",
  "AbilitySpecials": {
    "AS_AddedAttackDelta": {
      "Value": 300,
      "ValueType": "Float"
    },
    "AS_AddedAttackDelta_Final": {
      "Value": 0,
      "ValueType": "Float"
    },
    "AS_AddedBreakStunRatio": {
      "Value": 0.1,
      "ValueType": "Float"
    },
    "AS_AddedElementAccumulationRatio": {
      "Value": 0.1,
      "ValueType": "Float"
    },
    "AS_AttackChargeCD": {
      "Value": 1,
      "ValueType": "Float"
    },
    "AS_CoolDown": {
      "Value": 3,
      "ValueType": "Float"
    },
    "AS_ExMode_Duration": {
      "Value": 30,
      "ValueType": "Float"
    }
  },
  "AbilityStacking": "Unique",
  "DefaultModifier": {
    "OnAdded": [
      {
        "$type": "ApplyModifier",
        "ModifierName": "ListenSwitchAidModifier_Talent_03",
        "Target": "TeamAvatars"
      }
    ],
    "OnSkillStart": [
      {
        "$type": "ApplyModifier",
        "ModifierName": "Astra_ExMode_Talent_03",
        "Predicates": [
          {
            "$type": "ByOr",
            "Predicates": [
              {
                "$type": "ByFromSkillType",
                "SkillType": "ExQTE"
              },
              {
                "$type": "ByFromSkillType",
                "SkillType": "QTE"
              }
            ]
          }
        ],
        "Target": "Self"
      }
    ]
  },
  "Modifiers": {
    "Astra_BeHitAid_CD_Talent_03": {
      "Duration": "%AS_CoolDown",
      "ModifierStacking": "Unique"
    },
    "Astra_BeHitAid_Talent_03": {
      "Duration": 3,
      "ModifierStacking": "Replace",
      "OnHitOther": [
        {
          "$type": "BranchOperator",
          "Conditions": [
            {
              "$type": "ByAnimTagList",
              "TagList": [
                "BeHitAid"
              ]
            }
          ],
          "SuccessActions": [
            {
              "$type": "SetAbilitySpecialByExpression",
              "DoRefresh": true,
              "Expression": "property(Atk_Battle)*(specials(AS_AddedAttackDelta))",
              "ParamName": "AS_AddedAttackDelta_Final",
              "Target": "Caster",
              "ValueType": "Float"
            },
            {
              "$type": "ModifyAttackDataAction",
              "Predicates": [
                {
                  "$type": "ByAvatarProfessionType",
                  "ProfessionType": "Attack",
                  "Target": "Self"
                },
                {
                  "$type": "ByCauseStun",
                  "IsCauseStun": true
                }
              ],
              "PropertyKey": "Actor_AddedAttackDelta",
              "PropertyValue": "%AS_AddedAttackDelta_Final",
              "Target": "Self"
            },
            {
              "$type": "ModifyAttackDataAction",
              "Predicates": [
                {
                  "$type": "ByAvatarProfessionType",
                  "ProfessionType": "Anomaly",
                  "Target": "Self"
                }
              ],
              "PropertyKey": "Actor_AddedElementAccumulationRatio",
              "PropertyValue": "%AS_AddedElementAccumulationRatio",
              "Target": "Self"
            },
            {
              "$type": "ModifyAttackDataAction",
              "Predicates": [
                {
                  "$type": "ByAvatarProfessionType",
                  "ProfessionType": "Stun",
                  "Target": "Self"
                }
              ],
              "PropertyKey": "Actor_AddedBreakStunRatio",
              "PropertyValue": "%AS_AddedBreakStunRatio",
              "Target": "Self"
            },
            {
              "$type": "RemoveModifier",
              "ModifierName": "Astra_BeHitAid_Talent_03",
              "Predicates": [
                {
                  "$type": "ByCauseStun",
                  "IsCauseStun": true
                }
              ],
              "Target": "Self"
            }
          ]
        }
      ],
      "OnSkillStart": [
        {
          "$type": "BranchOperator",
          "Conditions": [
            {
              "$type": "ByFromSkillType",
              "SkillType": "BeHitAid"
            }
          ],
          "FailureActions": [
            {
              "$type": "RemoveModifier",
              "ModifierName": "Astra_BeHitAid_Talent_03",
              "Target": "Self"
            }
          ]
        }
      ]
    },
    "Astra_ExMode_Talent_03": {
      "Duration": "%AS_ExMode_Duration",
      "IgnoreTimeScale": false,
      "ModifierStacking": "Replace",
      "OnAdded": [
        {
          "$type": "SetTargetAbilitySpecialAction",
          "Params": [
            {
              "AbilityName": "Astra_Branch_Singing",
              "AbilitySpecials": [
                {
                  "ModifyFunction": "Replace",
                  "Param": 1,
                  "ParamName": "AS_Astra_ExMode_Talent_03",
                  "ParamType": "Integer"
                },
                {
                  "ModifyFunction": "Replace",
                  "Param": "%AS_AttackChargeCD",
                  "ParamName": "AS_AttackChargeCD",
                  "ParamType": "Float"
                }
              ]
            }
          ]
        }
      ],
      "OnRemoved": [
        {
          "$type": "SetTargetAbilitySpecialAction",
          "Params": [
            {
              "AbilityName": "Astra_Branch_Singing",
              "AbilitySpecials": [
                {
                  "ModifyFunction": "Replace",
                  "Param": 0,
                  "ParamName": "AS_Astra_ExMode_Talent_03",
                  "ParamType": "Integer"
                },
                {
                  "ModifyFunction": "Replace",
                  "Param": 3,
                  "ParamName": "AS_AttackChargeCD",
                  "ParamType": "Float"
                }
              ]
            }
          ]
        }
      ]
    },
    "ListenSwitchAidModifier_Talent_03": {
      "Duration": -1,
      "ModifierStacking": "Replace",
      "OnSwitchInBegin": [
        {
          "$type": "BranchOperator",
          "Conditions": [
            {
              "$type": "ByOr",
              "Predicates": [
                {
                  "$type": "ByAnd",
                  "Predicates": [
                    {
                      "$type": "ByAidAttackType",
                      "AidAttackType": "CommonAid"
                    },
                    {
                      "$type": "ByAvatarSwitchType",
                      "SwitchType": "AidAttack",
                      "Target": "Self"
                    }
                  ]
                },
                {
                  "$type": "ByAnd",
                  "Predicates": [
                    {
                      "$type": "ByAidAttackType",
                      "AidAttackType": "BeHitAid"
                    },
                    {
                      "$type": "ByAvatarSwitchType",
                      "SwitchType": "AidAttack",
                      "Target": "Self"
                    }
                  ]
                }
              ]
            }
          ],
          "Predicates": [
            {
              "$type": "ByIsInZoneTags",
              "Tags": [
                "Singing"
              ],
              "Target": "Caster"
            },
            {
              "$type": "ByNot",
              "Predicates": [
                {
                  "$type": "ByIsModifierCaster",
                  "Target": "Self"
                }
              ]
            }
          ],
          "SuccessActions": [
            {
              "$type": "ApplyModifier",
              "ModifierName": "Astra_BeHitAid_Talent_03",
              "Predicates": [
                {
                  "$type": "ByHasModifier",
                  "ModifierNameList": [
                    "Astra_BeHitAid_CD_Talent_03"
                  ],
                  "OperatorType": "Not",
                  "Target": "Caster"
                }
              ],
              "Target": "Self"
            },
            {
              "$type": "ApplyModifier",
              "ModifierName": "Astra_BeHitAid_CD_Talent_03",
              "Target": "Caster"
            }
          ]
        }
      ]
    }
  }
}