#textdomain wesnoth-units
[unit_type]
    id=Fencer
    name= _ "Fencer"
    race=human
    image="units/human-loyalists/fencer.png"
    profile="portraits/humans/fencer.png"
    ellipse="misc/ellipse"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=28
    movement_type=elusivefoot
    movement=6
    experience=42
    level=1
    alignment=lawful
    advances_to=Duelist
    cost=16
    usage=fighter
    description= _ "Fencers belong to a school of thought that considers the armor most soldiers wear in combat to be their own worst enemy. While armor can only soften a blow, evading it leaves the defender completely unharmed. Being able to reliably dodge any offensive move is a luxury only afforded to the fit of body, and then only to those who endure rigorous training.

Outfitted with only a dagger and saber, fencers are light on their feet and useful in many situations where their armor-bound peers are at a disadvantage. They relish dancing circles around troops like heavy infantry, mocking the weight of their full armor."+{SPECIAL_NOTES}+{SPECIAL_NOTES_SKIRMISHER}
    die_sound={SOUND_LIST:HUMAN_DIE}
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/humans/transparent/fencer.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/humans/transparent/fencer.png"
    [/portrait]
    [resistance]
        cold=90
    [/resistance]
    [abilities]
        {ABILITY_SKIRMISHER}
    [/abilities]
    [standing_anim]
        start_time=0
        [frame]
            duration=80
            image="units/human-loyalists/fencer-stand-1.png"
        [/frame]
        [frame]
            duration=80
            image="units/human-loyalists/fencer-stand-2.png"
        [/frame]
        [frame]
            duration=80
            image="units/human-loyalists/fencer-stand-3.png"
        [/frame]
        [frame]
            duration=80
            image="units/human-loyalists/fencer-stand-4.png"
        [/frame]
        [frame]
            duration=80
            image="units/human-loyalists/fencer-stand-5.png"
        [/frame]
        [frame]
            duration=80
            image="units/human-loyalists/fencer-stand-6.png"
        [/frame]
        [frame]
            duration=80
            image="units/human-loyalists/fencer-stand-7.png"
        [/frame]
        [frame]
            duration=80
            image="units/human-loyalists/fencer-stand-8.png"
        [/frame]
    [/standing_anim]
    [defend]
        hits=miss
        [frame]
            begin=-126
            end=-125
            image="units/human-loyalists/fencer.png"
        [/frame]
        [frame]
            begin=-125
            end=-42
            image="units/human-loyalists/fencer-defend-1-1.png"
        [/frame]
        [frame]
            begin=-42
            end=41
            image="units/human-loyalists/fencer-defend-1-2.png"
        [/frame]
        [frame]
            begin=41
            end=125
            image="units/human-loyalists/fencer-defend-1-1.png"
        [/frame]
        [frame]
            begin=125
            end=126
            image="units/human-loyalists/fencer-defend-1-1.png"
        [/frame]
    [/defend]
    [defend]
        hits=hit
        [frame]
            begin=-126
            end=-125
            image="units/human-loyalists/fencer.png"
        [/frame]
        [frame]
            begin=-125
            end=-25
            image="units/human-loyalists/fencer-defend.png"
        [/frame]
        [frame]
            begin=-25
            end=125
            image="units/human-loyalists/fencer-defend.png"
            sound={SOUND_LIST:HUMAN_HIT}
        [/frame]
        [frame]
            begin=125
            end=126
            image="units/human-loyalists/fencer.png"
        [/frame]
    [/defend]
    [defend]
        hits=kill
        [frame]
            begin=-126
            end=-125
            image="units/human-loyalists/fencer.png"
        [/frame]
        [frame]
            begin=-125
            end=125
            image="units/human-loyalists/fencer-defend.png"
        [/frame]
        [frame]
            begin=125
            end=126
            image="units/human-loyalists/fencer.png"
        [/frame]
    [/defend]
    [death]
        [frame]
            begin=0
            end=100
            image="units/human-loyalists/fencer-die1.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/human-loyalists/fencer-die2.png"
        [/frame]
        [frame]
            begin=200
            end=300
            image="units/human-loyalists/fencer-die3.png"
        [/frame]
        [frame]
            begin=300
            end=400
            image="units/human-loyalists/fencer-die4.png"
        [/frame]
        [frame]
            begin=400
            end=500
            image="units/human-loyalists/fencer-die5.png"
        [/frame]
    [/death]
    [attack]
        name=saber
        description=_"saber"
        icon=attacks/saber-human.png
        type=blade
        damage=4
        number=4
        range=melee
    [/attack]
    [idle_anim]
        {STANDARD_IDLE_FILTER}
        start_time=0
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-7.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-loyalists/fencer-idle-1.png"
        [/frame]
    [/idle_anim]
    [attack_anim]
        [filter_attack]
            name=saber
        [/filter_attack]
        [frame]
            begin=-300
            end=-250
            image="units/human-loyalists/fencer-attack-1.png"
            offset=0.0~-0.07
        [/frame]
        [frame]
            begin=-250
            end=-200
            image="units/human-loyalists/fencer-attack-2.png"
            offset=-0.07~-0.15
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=-150
                image="units/human-loyalists/fencer-attack-3.png"
                sound={SOUND_LIST:SWORD_SWISH}
                offset=-0.15~-0.25
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=-150
                image="units/human-loyalists/fencer-attack-3.png"
                sound={SOUND_LIST:MISS}
                offset=-0.15~-0.25
            [/frame]
        [/else]
        [frame]
            begin=-150
            end=-100
            image="units/human-loyalists/fencer-attack-4.png"
            offset=-0.25~-0.2
        [/frame]
        [frame]
            begin=-100
            end=-50
            image="units/human-loyalists/fencer-attack-5.png"
            offset=-0.2~-0.1
        [/frame]
        [frame]
            begin=-50
            end=0
            image="units/human-loyalists/fencer-attack-6.png"
            offset=-0.1~0.25
        [/frame]
        [frame]
            begin=0
            end=50
            image="units/human-loyalists/fencer-attack-7.png"
            offset=0.25~0.55
        [/frame]
        [frame]
            begin=50
            end=100
            image="units/human-loyalists/fencer-attack-8.png"
            offset=0.55~0.25
        [/frame]
        [frame]
            begin=100
            end=150
            image="units/human-loyalists/fencer-attack-9.png"
            offset=0.25~0.1
        [/frame]
        [frame]
            begin=150
            end=200
            image="units/human-loyalists/fencer-attack-1.png"
            offset=0.1~0.0
        [/frame]
    [/attack_anim]
[/unit_type]
