{
  "AbilityMixins": [
    {
      "$type": "WatchEntityMixin",
      "EntityTypes": [
        "Avatar"
      ],
      "OnEntityAwaked": [
        {
          "$type": "ApplyModifier",
          "ModifierName": "Unagi_MathSkill_TeamModifier",
          "Predicates": [
            {
              "$type": "ByMathSkillSuccess",
              "Target": "Caster"
            }
          ],
          "Target": "TeamAvatars"
        }
      ],
      "Relationships": [
        "Allied"
      ]
    },
    {
      "$type": "ActionsOnPropertyChangeMixin",
      "PropertyActions": [
        {
          "CustomPropertyType": "FrostMoonState",
          "CustomReferMaxPropertyType": "MaxFrostMoonState",
          "IsUsePercentage": false,
          "PropertyType": "Custom",
          "ReferMaxPropertyType": "Custom",
          "ValueRangeActions": [
            {
              "HighToValueActions": [
                {
                  "$type": "RemoveModifier",
                  "ModifierName": "AddChargeAttackDmgModifier",
                  "Target": "Self"
                }
              ],
              "Val": 0
            }
          ]
        }
      ]
    }
  ],
  "AbilityName": "Unagi_MathSkill",
  "AbilitySpecials": {
    "AS_AddedDamageRatio_Math": {
      "Value": 0.5
    },
    "AS_AddedMagicValue_Math": {
      "Value": 1
    },
    "AS_IceDamageResist_Math": {
      "Value": -0.3
    }
  },
  "AbilityStacking": "Unique",
  "DefaultModifier": {
    "OnAdded": [
      {
        "$type": "ApplyModifier",
        "ModifierName": "Unagi_MathSkill_TeamModifier",
        "Predicates": [
          {
            "$type": "ByMathSkillSuccess",
            "Target": "Caster"
          }
        ],
        "Target": "TeamAvatars"
      }
    ],
    "OnHitOther": [
      {
        "$type": "ModifyAttackDataAction",
        "Predicates": [
          {
            "$type": "ByAnimTagList",
            "TagList": [
              "ChargeAttack"
            ],
            "Target": "Self"
          },
          {
            "$type": "ByMathSkillSuccess",
            "Target": "Caster"
          }
        ],
        "PropertyKey": "Actor_AddedDamageRatio",
        "PropertyValue": "%AS_AddedDamageRatio_Math"
      }
    ]
  },
  "Modifiers": {
    "AddChargeAttackDmgModifier": {
      "Duration": -1,
      "ModifierStacking": "Unique",
      "OnHitOther": [
        {
          "$type": "ModifyAttackDataAction",
          "Predicates": [
            {
              "$type": "ByAnimTagList",
              "TagList": [
                "ChargeAttack"
              ],
              "Target": "Self"
            }
          ],
          "PropertyKey": "Actor_IceDamageResist",
          "PropertyValue": "%AS_IceDamageResist_Math"
        }
      ]
    },
    "AddDmgNextTimeModifier": {
      "Duration": -1,
      "ModifierMixins": [
        {
          "$type": "ActionsOnPropertyChangeMixin",
          "DoInitialCheck": false,
          "PropertyActions": [
            {
              "CustomPropertyType": "FrostMoonState",
              "CustomReferMaxPropertyType": "MaxFrostMoonState",
              "IsUsePercentage": false,
              "PropertyType": "Custom",
              "ReferMaxPropertyType": "Custom",
              "ValueRangeActions": [
                {
                  "LowToValueActions": [
                    {
                      "$type": "ApplyModifier",
                      "ModifierName": "AddChargeAttackDmgModifier",
                      "Target": "Self"
                    },
                    {
                      "$type": "RemoveModifier",
                      "ModifierName": "AddDmgNextTimeModifier",
                      "Target": "Self"
                    }
                  ],
                  "Val": 1
                }
              ]
            }
          ]
        }
      ],
      "ModifierStacking": "Replace"
    },
    "Unagi_MathSkill_TeamModifier": {
      "Duration": -1,
      "ModifierStacking": "Unique",
      "OnBuffAddToOther": [
        {
          "$type": "ModifyProperty",
          "Amount": "%AS_AddedMagicValue_Math",
          "CustomKey": "AbilityTarget_Unagi",
          "CustomPropertyType": "MagicValueCounts",
          "IsUsePercentage": false,
          "Percentage": 0,
          "Predicates": [
            {
              "$type": "ByHandlingBuffGroup",
              "BuffGroupList": [
                "Disorder"
              ]
            }
          ],
          "PropertyModifyFunction": "Add",
          "PropertyType": "Custom",
          "Target": "Custom"
        },
        {
          "$type": "ApplyModifier",
          "CustomKey": "AbilityTarget_Unagi",
          "ModifierName": "AddDmgNextTimeModifier",
          "Predicates": [
            {
              "$type": "ByHandlingBuffGroup",
              "BuffGroupList": [
                "Disorder"
              ]
            }
          ],
          "Target": "Custom"
        }
      ]
    }
  }
}