#textdomain wesnoth-units
[unit_type]
    id=Dwarvish Scout
    name= _ "Dwarvish Scout"
    race=dwarf
    image=units/dwarves/scout.png
    profile="portraits/dwarves/scout.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=30
    movement_type=dwarvishfoot
    #keep dwarves from racing across lava
    movement=5
    experience=30
    level=1
    alignment=neutral
    advances_to=Dwarvish Pathfinder
    cost=18
    usage=mixed fighter
    description= _ "Although the dwarves cannot match the taller races in a sprint, when unencumbered by heavy armor their tremendous stamina and endurance allows them to match all but the fastest on foot. Dwarvish Scouts use this to their advantage, ranging ahead of the main force and reporting back on troop movements and dispositions, or securing important objectives. Outside of battle, they are often used to relay messages between dwarvish communities. However, they pay for their speed with the poorer protection provided by their lighter armor."
    die_sound={SOUND_LIST:DWARF_DIE}
    #weakened from 7 damage to 6
    {DEFENSE_ANIM "units/dwarves/scout-defend-2.png" units/dwarves/scout-defend-1.png {SOUND_LIST:DWARF_HIT} }
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/dwarves/transparent/scout.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/dwarves/transparent/scout.png"
    [/portrait]
    [attack]
        name=axe
        description= _"axe"
        type=blade
        range=melee
        damage=6
        number=3
    [/attack]
    [attack]
        name=axe
        description= _"axe"
        type=blade
        range=ranged
        damage=8
        number=2
    [/attack]
    [attack_anim]
        [filter_attack]
            range=ranged
            name=axe
        [/filter_attack]
        {MISSILE_FRAME_HATCHET}
        [frame]
            begin=-300
            end=-100
            image="units/dwarves/scout-ranged-1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image=units/dwarves/scout-ranged-2.png
                sound=hatchet.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image=units/dwarves/scout-ranged-2.png
                sound=hatchet-miss.wav
            [/frame]
        [/else]
        [frame]
            begin=0
            end=100
            image=units/dwarves/scout-ranged-3.png
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            range=melee
            name=axe
        [/filter_attack]
        start_time=-260
        offset=0.0~0.6:260,0.6~0.6:100,0.6~0.0:150
        [frame]
            duration=80
            image="units/dwarves/scout-melee-1.png"
        [/frame]
        [frame]
            duration=80
            image="units/dwarves/scout-melee-2.png"
        [/frame]
        [frame]
            duration=50
            image="units/dwarves/scout-melee-3.png"
        [/frame]
        [frame]
            duration=50
            image="units/dwarves/scout-melee-4.png"
        [/frame]
        [frame]
            duration=50
            image="units/dwarves/scout-melee-5.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=50
                image="units/dwarves/scout-melee-6.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=50
                image="units/dwarves/scout-melee-6.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/dwarves/scout-melee-7.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/scout-melee-8.png"
        [/frame]
    [/attack_anim]
[/unit_type]
