#textdomain wesnoth-units
[unit_type]
    id=Halberdier
    name= _ "Halberdier"
    race=human
    image="units/human-loyalists/halberdier.png"
    profile="portraits/humans/halberdier.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=72
    movement_type=smallfoot
    movement=5
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=44
    usage=fighter
    description= _ "A halberd is a heavy weapon and difficult to use, but very powerful in the hands of an expert. It is also much more flexible than the spear from which it descended. As any halberdier can tell you, the weapon possesses four primary striking points, two more than a spear or pike; these are the tip, the blade, the spike at the base of the shaft, and the inner point on the blade, which can be used in a motion pulling back towards the wielder. All this makes for a very versatile weapon in melee, especially against cavalry.

However, a halberd is notably more expensive to craft than a spear, and in the hands of a novice, much less effective. In the armies of Wesnoth, it is customary only to grant these weapons to veteran pikemen, who have proven that they have the skill to employ them properly on the field of war."+{SPECIAL_NOTES}+{SPECIAL_NOTES_FIRSTSTRIKE}
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-loyalists/halberdier-defend.png" "units/human-loyalists/halberdier.png" {SOUND_LIST:HUMAN_HIT} }
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/humans/transparent/halberdier.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/humans/transparent/halberdier.png"
    [/portrait]
    [resistance]
        pierce=60
    [/resistance]
    [attack]
        name=halberd
        description=_"halberd"
        icon=attacks/halberd.png
        type=pierce
        range=melee
        damage=15
        number=3
        [specials]
            {WEAPON_SPECIAL_FIRSTSTRIKE}
        [/specials]
    [/attack]
    [attack]
        name=halberd
        description=_"halberd"
        icon=attacks/halberd.png
        type=blade
        range=melee
        damage=19
        number=2
    [/attack]
    [idle_anim]
        {STANDARD_IDLE_FILTER}
        start_time=0
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-4.png"
        [/frame]
        [frame]
            duration=700
            image="units/human-loyalists/halberdier-idle-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-7.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-8.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-9.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-10.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-11.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-12.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/halberdier-idle-1.png"
        [/frame]
    [/idle_anim]
    [attack_anim]
        [filter_attack]
            name=halberd
            type=blade
        [/filter_attack]
        [frame]
            begin=-250
            end=-200
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
        [frame]
            begin=-200
            end=-100
            image="units/human-loyalists/halberdier-slash-se-1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/human-loyalists/halberdier-slash-se-2.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/human-loyalists/halberdier-slash-se-2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=200
            image="units/human-loyalists/halberdier-pierce-se.png"
        [/frame]
        [frame]
            begin=200
            end=250
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=halberd
            type=pierce
        [/filter_attack]
        direction=ne,nw
        [frame]
            begin=-250
            end=-200
            image="units/human-loyalists/halberdier.png"
        [/frame]
        [frame]
            begin=-200
            end=-100
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/human-loyalists/halberdier-pierce-ne.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/human-loyalists/halberdier-pierce-ne.png"
                sound=spear-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=halberd
            type=pierce
        [/filter_attack]
        direction=se,sw
        [frame]
            begin=-250
            end=-200
            image="units/human-loyalists/halberdier.png"
        [/frame]
        [frame]
            begin=-200
            end=-100
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/human-loyalists/halberdier-pierce-se.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/human-loyalists/halberdier-pierce-se.png"
                sound=spear-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=halberd
            type=pierce
        [/filter_attack]
        direction=n
        hits=yes
        [frame]
            begin=-250
            end=-200
            image="units/human-loyalists/halberdier.png"
        [/frame]
        [frame]
            begin=-200
            end=-100
            image="units/human-loyalists/halberdier-pierce-ne.png"
        [/frame]
        [frame]
            begin=-100
            end=100
            image="units/human-loyalists/halberdier-pierce-n.png"
            sound=spear.ogg
        [/frame]
        [frame]
            begin=100
            end=150
            image="units/human-loyalists/halberdier-pierce-ne.png"
        [/frame]
        [frame]
            begin=150
            end=175
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=halberd
            type=pierce
        [/filter_attack]
        direction=n
        hits=no
        [frame]
            begin=-250
            end=-200
            image="units/human-loyalists/halberdier.png"
        [/frame]
        [frame]
            begin=-200
            end=-100
            image="units/human-loyalists/halberdier-pierce-ne.png"
        [/frame]
        [frame]
            begin=-150
            end=100
            image="units/human-loyalists/halberdier-pierce-n.png"
            sound=spear-miss.ogg
        [/frame]
        [frame]
            begin=100
            end=150
            image="units/human-loyalists/halberdier-pierce-ne.png"
        [/frame]
        [frame]
            begin=150
            end=175
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=halberd
            type=pierce
        [/filter_attack]
        direction=s
        [frame]
            begin=-250
            end=-200
            image="units/human-loyalists/halberdier.png"
        [/frame]
        [frame]
            begin=-200
            end=-150
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=100
                image="units/human-loyalists/halberdier-pierce-s.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=100
                image="units/human-loyalists/halberdier-pierce-s.png"
                sound=spear-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=100
            end=150
            image="units/human-loyalists/halberdier-pierce-se.png"
        [/frame]
        [frame]
            begin=150
            end=175
            image="units/human-loyalists/halberdier-defend.png"
        [/frame]
    [/attack_anim]
[/unit_type]
