<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_unit_hero_infantry">
  <Attack>
    <Melee>
      <AttackName>Spear</AttackName>
      <Damage>
        <Hack>15</Hack>
        <Pierce>12</Pierce>
      </Damage>
      <MaxRange>4</MaxRange>
      <PrepareTime>450</PrepareTime>
      <RepeatTime>1000</RepeatTime>
      <Bonuses>
        <BonusCavMelee>
          <Classes>Cavalry</Classes>
          <Multiplier>2.5</Multiplier>
        </BonusCavMelee>
      </Bonuses>
      <PreferredClasses datatype="tokens">Unit+!Ship</PreferredClasses>
    </Melee>
  </Attack>
  <Identity>
    <GenericName>Hero Spearman</GenericName>
    <Tooltip>Counters: 2.5× vs Cavalry.</Tooltip>
    <VisibleClasses datatype="tokens">Melee Spearman</VisibleClasses>
  </Identity>
  <Resistance>
    <Entity>
      <Damage>
        <Hack op="add">4</Hack>
        <Pierce op="add">4</Pierce>
      </Damage>
    </Entity>
  </Resistance>
  <Sound>
    <SoundGroups>
      <attack_melee>attack/weapon/spear_attack.xml</attack_melee>
    </SoundGroups>
  </Sound>
  <UnitAI>
    <Formations datatype="tokens">
      special/formations/testudo
    </Formations>
  </UnitAI>
</Entity>
