<abilities>
  <ability>
    <name>Piercing Skewer</name>
    <key>piercing_skewer</key>
    <skill>Swords</skill>
    <icon>piercing_skewer</icon>
    <tagline>"Most people only ever see what's in front of them. My reach is much longer."</tagline>
    <description>
      Skewer through an adjacent enemy and a target directly behind it with ⮃+25% armor penetration⮃.
      [p]Skewered enemies are immobilized 2 turns.
    </description>
    <type>Target</type>
    <subType>2_Abilities</subType>
    <abilitySoundPack>blade</abilitySoundPack>
    <cost>35.0</cost>
    <cooldown>10</cooldown>
    <targetInfo>
      <type>RotationSelection</type>
      <rotationTargeting>
        <allowTargets>
          <allowCreature>true</allowCreature>
          <allowEmpty>true</allowEmpty>
          <allowPlayer>false</allowPlayer>
        </allowTargets>
        <shape>1line</shape>
        <params>
          <params type="stopAtFirstTarget">false</params>
          <params type="length">2</params>
        </params>
      </rotationTargeting>
      <abilityUseTime>
        <type>weapon</type>
      </abilityUseTime>
      <postTargetEffects>
        <postTargetEffect>
          IF PlayerHasAbility -> key:dual_impact;
          AND NumberCompare -> key:{{Q:PlayerTargets -> isHit:true}}, greater_than:1;
          THEN ExtendStatusEffect -> key:piercing_skewer_immobilized, amount:1;
          THEN DealTrueDamage -> amount:10;
          THEN write_log -> logAfterCombat:true,
              text:+10 true damage\, +1 immobilize duration (Dual Impact),
              type:combat;
        </postTargetEffect>
        <postTargetEffect>
          IF PlayerHasAbility -> key:lockdown;
          AND NumberCompare -> key:{{Q:DistanceToPlayer}}, greater_than:1;
          THEN ExtendStatusEffect -> key:piercing_skewer_immobilized, amount:2;
          THEN write_log -> logAfterCombat:true,
              text:+2 immobilize duration (Lockdown),
              type:combat;
        </postTargetEffect>
      </postTargetEffects>
    </targetInfo>
    <unlockInfo>
      <autoDiscover>0</autoDiscover>
      <unlockRequirements>
        <requiredPoints>2</requiredPoints>
      </unlockRequirements>
    </unlockInfo>
    <extraTexts>
      <extraTexts>
        {{upgrade_text -> ability:dual_impact}}
      </extraTexts>
      <extraTexts>
        {{upgrade_text -> ability:lockdown}}
      </extraTexts>
      <extraTexts>
        {{upgrade_text -> ability:precision_flourish, text:+5% crit chance for each enemy hit.}}
      </extraTexts>
    </extraTexts>
    <requirements>
      <requirements>
        <type>Weapon</type>
        <params>
          <params type="weapon">Sword</params>
        </params>
      </requirements>
    </requirements>
    <attacks>
      <attacks>
        <count>0</count>
        <animation>spell_stab_03</animation>
        <modifiers>
          <modifiers>
            <type>ArmorPen</type>
            <amount>0.25</amount>
          </modifiers>
        </modifiers>
        <debuffs>
          <debuffs>
            <turns>2</turns>
            <name>Immobilized</name>
            <key>piercing_skewer_immobilized</key>
            <resistedBy>PhysicalWarding</resistedBy>
            <modifiers>
              <modifiers>
                <type>MovementDisabled</type>
                <amount>1.0</amount>
              </modifiers>
            </modifiers>
          </debuffs>
        </debuffs>
      </attacks>
    </attacks>
  </ability>
</abilities>
