<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_champion_cavalry_swordsman">
  <Attack>
    <Melee>
      <AttackName context="Name of an attack using a double-edged sword.">Sword</AttackName>
      <Damage>
        <Hack>20</Hack>
        <Hack>8</Hack>
      </Damage>
      <MaxRange>3</MaxRange>
      <PrepareTime>450</PrepareTime>
      <RepeatTime>1200</RepeatTime>
      <Bonuses>
        <BonusMelee>
          <Classes>Ranged Infantry</Classes>
          <Multiplier>1.25</Multiplier>
        </BonusMelee>
      </Bonuses>
      <PreferredClasses datatype="tokens">Unit+!Ship</PreferredClasses>
    </Melee>
  </Attack>
  <Identity>
    <VisibleClasses datatype="tokens">Melee Swordsman</VisibleClasses>
    <GenericName>Champion Cavalry Swordsman</GenericName>
    <Tooltip>Counters: 1.25× vs Ranged Infantry.</Tooltip>
  </Identity>
  <Resistance>
    <Entity>
      <Damage>
        <Hack op="add">2</Hack>
        <Pierce op="add">2</Pierce>
      </Damage>
    </Entity>
  </Resistance>
  <Sound>
    <SoundGroups>
      <attack_melee>attack/weapon/sword_attack.xml</attack_melee>
    </SoundGroups>
  </Sound>
  <UnitMotion>
    <WalkSpeed op="mul">0.92</WalkSpeed>
    <RunMultiplier>0.92</RunMultiplier>
  </UnitMotion>
</Entity>
