<abilities>
  <ability>
    <hideHitSplash>true</hideHitSplash>
    <name>Knight's Challenge</name>
    <key>knights_challenge</key>
    <skill>chivalry</skill>
    <icon>knights_challenge</icon>
    <tagline>"I call upon thee, villain! Face me and forsake your dark deeds."</tagline>
    <description>
      Issue a challenge forcing a single enemy within 3 tiles to focus attacks on you for 5 turns.

      [p]Challenged enemy has ⮃12% reduced damage⮃. If the target is killed while the challenge is still
      active, gain x2 Oaths of the Fallen.
    </description>
    <type>Target</type>
    <subType>2_abilities</subType>
    <abilitySoundPack>mark</abilitySoundPack>
    <cost>30.0</cost>
    <cooldown>12</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">3</params>
            <params type="height">3</params>
          </params>
        </selectionArea>
        <targetArea>
          <type>square</type>
          <params>
            <params type="width">0</params>
            <params type="height">0</params>
          </params>
        </targetArea>
      </aoeTargeting>
      <usesAmmo>false</usesAmmo>
      <abilityUseTime>
        <type>standard</type>
      </abilityUseTime>
    </targetInfo>
    <unlockInfo>
      <autoUnlock>-1</autoUnlock>
      <autoDiscover>0</autoDiscover>
      <unlockRequirements>
        <requiredPoints>1</requiredPoints>
        <requires>oath_of_the_fallen</requires>
      </unlockRequirements>
    </unlockInfo>
    <attacks>
      <attacks>
        <count>0</count>
        <animation>spell_markprey</animation>
        <specialModifiers>
          <specialModifiers>
            <type>EffectsOnly</type>
            <amount>0</amount>
          </specialModifiers>
          <specialModifiers>
            <type>NonPhysical</type>
            <amount>0</amount>
          </specialModifiers>
        </specialModifiers>
        <targetEffects>
          <targetEffects>
            apply_status_effect -> key:knights_challenge;
          </targetEffects>
        </targetEffects>
      </attacks>
    </attacks>
  </ability>
</abilities>
