#textdomain wesnoth-units
[unit_type]
    id=Master at Arms
    name= _ "Master at Arms"
    race=human
    image="units/human-loyalists/master-at-arms.png"
    profile="portraits/humans/master-at-arms.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=57
    movement_type=elusivefoot
    movement=7
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=44
    usage=mixed fighter
    description= _ "Master fencers have an envied place in life. Though the journey to their station was a dangerous way of life, they have reached the time wherein they reap its rewards. Famed for their skill and dashing manner, these gentlemen have the bearing of natural aristocrats, and are followed by the eyes of many a high born lady.

They usually have the luxury of choosing their appointments, and are free to roam the land should they so elect. Often, they will be found as the captains of a castle guard, or as the master of a military academy, positions in which their flamboyant nature is not only accepted, but is perhaps even useful."+{SPECIAL_NOTES}+{SPECIAL_NOTES_SKIRMISHER}
    {DEFENSE_ANIM "units/human-loyalists/master-at-arms-defend-2.png" "units/human-loyalists/master-at-arms-defend-1.png" {SOUND_LIST:HUMAN_HIT} }
    die_sound={SOUND_LIST:HUMAN_DIE}
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/humans/transparent/master-at-arms.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/humans/transparent/master-at-arms.png"
    [/portrait]
    [resistance]
        cold=90
    [/resistance]
    [abilities]
        {ABILITY_SKIRMISHER}
    [/abilities]
    [attack]
        name=saber
        description=_"saber"
        icon=attacks/saber-human.png
        type=blade
        range=melee
        damage=7
        number=5
    [/attack]
    [attack]
        name=crossbow
        description=_"crossbow"
        icon=attacks/crossbow-human.png
        type=pierce
        range=ranged
        damage=20
        number=1
    [/attack]
    [victory_anim]
        start_time=0
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-5.png"
        [/frame]
        [frame]
            duration=1000
            image="units/human-loyalists/master-at-arms-victory-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-1.png"
        [/frame]
    [/victory_anim]
    [idle_anim]
        {STANDARD_IDLE_FILTER}
        start_time=0
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-5.png"
        [/frame]
        [frame]
            duration=1000
            image="units/human-loyalists/master-at-arms-victory-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/master-at-arms-victory-1.png"
        [/frame]
    [/idle_anim]
    [attack_anim]
        [filter_attack]
            name=crossbow
        [/filter_attack]
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]
        [frame]
            begin=-600
            end=-500
            image="units/human-loyalists/master-at-arms-crossbow-1.png"
        [/frame]
        [frame]
            begin=-500
            end=-400
            image="units/human-loyalists/master-at-arms-crossbow-2.png"
        [/frame]
        {SOUND:HIT_AND_MISS crossbow.ogg crossbow-miss.ogg -400}
        [frame]
            begin=-400
            end=-300
            image="units/human-loyalists/master-at-arms-crossbow-3.png"
        [/frame]
        [frame]
            begin=-300
            end=-100
            image="units/human-loyalists/master-at-arms-crossbow-4.png"
        [/frame]
        [frame]
            begin=-100
            end=100
            image="units/human-loyalists/master-at-arms-crossbow-5.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/human-loyalists/master-at-arms-crossbow-6.png"
        [/frame]
        [frame]
            begin=200
            end=300
            image="units/human-loyalists/master-at-arms-crossbow-3.png"
        [/frame]
        [frame]
            begin=300
            end=400
            image="units/human-loyalists/master-at-arms-crossbow-2.png"
        [/frame]
        [frame]
            begin=400
            end=500
            image="units/human-loyalists/master-at-arms-crossbow-1.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=saber
        [/filter_attack]
        [frame]
            begin=-200
            end=-175
            image="units/human-loyalists/master-at-arms.png"
        [/frame]
        [frame]
            begin=-175
            end=-125
            image="units/human-loyalists/master-at-arms-melee-2-1.png"
        [/frame]
        [frame]
            begin=-125
            end=-75
            image="units/human-loyalists/master-at-arms-melee-2-2.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-75
                end=75
                image="units/human-loyalists/master-at-arms-melee-3-3.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-75
                end=75
                image="units/human-loyalists/master-at-arms-melee-1-3.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/else]
        [frame]
            begin=75
            end=125
            image="units/human-loyalists/master-at-arms-recover-1.png"
        [/frame]
        [frame]
            begin=125
            end=175
            image="units/human-loyalists/master-at-arms-recover-2.png"
        [/frame]
        [frame]
            begin=175
            end=200
            image="units/human-loyalists/master-at-arms.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=saber
        [/filter_attack]
        [frame]
            begin=-200
            end=-175
            image="units/human-loyalists/master-at-arms.png"
        [/frame]
        [frame]
            begin=-175
            end=-125
            image="units/human-loyalists/master-at-arms-melee-2-1.png"
        [/frame]
        [frame]
            begin=-125
            end=-75
            image="units/human-loyalists/master-at-arms-melee-2-2.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-75
                end=75
                image="units/human-loyalists/master-at-arms-melee-2-3.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-75
                end=75
                image="units/human-loyalists/master-at-arms-melee-1-3.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/else]
        [frame]
            begin=75
            end=125
            image="units/human-loyalists/master-at-arms-recover-1.png"
        [/frame]
        [frame]
            begin=125
            end=175
            image="units/human-loyalists/master-at-arms-recover-2.png"
        [/frame]
        [frame]
            begin=175
            end=200
            image="units/human-loyalists/master-at-arms.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=saber
        [/filter_attack]
        [frame]
            begin=-200
            end=-175
            image="units/human-loyalists/master-at-arms.png"
        [/frame]
        [frame]
            begin=-175
            end=-125
            image="units/human-loyalists/master-at-arms-melee-1-1.png"
        [/frame]
        [frame]
            begin=-125
            end=-75
            image="units/human-loyalists/master-at-arms-melee-1-2.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-75
                end=75
                image="units/human-loyalists/master-at-arms-melee-1-3.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-75
                end=75
                image="units/human-loyalists/master-at-arms-melee-1-3.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/else]
        [frame]
            begin=75
            end=125
            image="units/human-loyalists/master-at-arms-recover-1.png"
        [/frame]
        [frame]
            begin=125
            end=175
            image="units/human-loyalists/master-at-arms-recover-2.png"
        [/frame]
        [frame]
            begin=175
            end=200
            image="units/human-loyalists/master-at-arms.png"
        [/frame]
    [/attack_anim]
[/unit_type]
