<abilities>
  <ability>
    <name>The Beatdown</name>
    <key>the_beatdown</key>
    <skill>Maces</skill>
    <icon>the_beatdown</icon>
    <tagline>"And STAY down!"</tagline>
    <description>
      Perform 2 mace attacks, each with -45% damage but ⮃+15% stun chance⮃.
    </description>
    <type>Target</type>
    <subType>2_Abilities</subType>
    <abilitySoundPack>hammer</abilitySoundPack>
    <cost>25.0</cost>
    <cooldown>6</cooldown>
    <targetInfo>
      <type>TileSelection</type>
      <aoeTargeting>
        <selectionArea>
          <type>square</type>
          <allowTargets>
            <allowCreature>true</allowCreature>
            <allowEmpty>false</allowEmpty>
            <allowPlayer>false</allowPlayer>
          </allowTargets>
          <params>
            <params type="width">0</params>
            <params type="height">0</params>
            <params type="expandStat">Range</params>
          </params>
        </selectionArea>
        <targetArea>
          <type>square</type>
          <params>
            <params type="width">0</params>
            <params type="height">0</params>
          </params>
        </targetArea>
      </aoeTargeting>
      <abilityUseTime>
        <type>weapon</type>
      </abilityUseTime>
    </targetInfo>
    <unlockInfo>
      <autoDiscover>0</autoDiscover>
      <unlockRequirements>
        <requiredPoints>3</requiredPoints>
      </unlockRequirements>
    </unlockInfo>
    <extraTexts>
      <extraTexts>
        {{upgrade_text -> ability:gathered_strength,
            text:After waiting a turn deals full damage\, without the -45% debuff.}}
      </extraTexts>
      <extraTexts>
        {{upgrade_text -> ability:tenderize,
            text:If both attacks hit\, target is Tenderized for 5 turns for -15% physical and
                wound resist.}}
      </extraTexts>
    </extraTexts>
    <requirements>
      <requirements>
        <type>Weapon</type>
        <params>
          <params type="weapon">Mace</params>
        </params>
      </requirements>
    </requirements>
    <attacks>
      <attacks>
        <count>0</count>
        <animation>spell_smash_03</animation>
        <modifiers>
          <modifiers>
            <type>stunChance</type>
            <amount>0.15</amount>
          </modifiers>
          <modifiers>
            <type>Damage</type>
            <amount>0.0</amount>
            <modifierConversion>
              <type>Calculator</type>
              <calculator>
                the_beatdown_damage_calculator
              </calculator>
            </modifierConversion>
          </modifiers>
        </modifiers>
      </attacks>
      <attacks>
        <count>0</count>
        <animation>spell_smash_03_offset</animation>
        <modifiers>
          <modifiers>
            <type>stunChance</type>
            <amount>0.15</amount>
          </modifiers>
          <modifiers>
            <type>Damage</type>
            <amount>0.0</amount>
            <modifierConversion>
              <type>Calculator</type>
              <calculator>
                the_beatdown_damage_calculator
              </calculator>
            </modifierConversion>
          </modifiers>
        </modifiers>
      </attacks>
    </attacks>
  </ability>
</abilities>
