<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_hero_cavalry">
  <Attack>
    <Melee>
      <AttackName context="Name of an attack using a double-edged sword.">Sword</AttackName>
      <Damage>
        <Hack>40</Hack>
        <Crush>16</Crush>
      </Damage>
     <MaxRange>3.5</MaxRange>
     <PrepareTime>250</PrepareTime>
     <RepeatTime>1100</RepeatTime>
      <Bonuses>
        <BonusCavMelee>
          <Classes>Ranged Infantry</Classes>
          <Multiplier>1.5</Multiplier>
        </BonusCavMelee>
      </Bonuses>
     <PreferredClasses datatype="tokens">Unit+!Ship</PreferredClasses>
    </Melee>
  </Attack>
  <Cost>
    <Resources>
      <wood op="add">-50</wood>
      <metal op="add">50</metal>
    </Resources>
  </Cost>
  <Identity>
    <VisibleClasses datatype="tokens">Melee Swordsman</VisibleClasses>
    <GenericName>Hero Cavalry Swordsman</GenericName>
    <Tooltip>Counters:1.5× vs Ranged Infantry.</Tooltip>
  </Identity>
  <Resistance>
    <Entity>
      <Damage>
        <Hack op="add">4</Hack>
        <Pierce op="add">4.5</Pierce>
      </Damage>
    </Entity>
  </Resistance>
  <Sound>
    <SoundGroups>
      <attack_melee>attack/weapon/sword_attack.xml</attack_melee>
    </SoundGroups>
  </Sound>
</Entity>
