#textdomain wesnoth-utbs
#define DESERT_HUNTER SUFFIX COST HIDEORNOT
    [unit]
        id=Desert Hunter{SUFFIX}
        hide_help={HIDEORNOT}
        name= _ "Desert Hunter"
        race=elf
        gender=male,female
        image=units/elves-desert/hunter.png
        hitpoints=30
        movement_type=woodland
        #desert elves move fast across the sands, but are not used to forests
        #they are also a bit faster in caves
        [movement_costs]
            sand=1
            forest=2
            cave=2
            tundra=3
        [/movement_costs]
        [defense]
            sand=40
            forest=50
        [/defense]
        movement=6
        experience=42
        level=1
        alignment=lawful
        advanceto=Desert Sentinel
        cost={COST}
        usage=mixed fighter
        unit_description= _ "Desert Hunters are trained to scour the sands for prey and enemies. They can quickly entangle others with their bolas and then finish them off with their swords."+{SPECIAL_NOTES}+{SPECIAL_NOTES_SLOW}
        die_sound={SOUND_LIST:ELF_HIT}
        {DEFENSE_ANIM "units/elves-desert/hunter-defend.png" units/elves-desert/hunter.png {SOUND_LIST:ELF_HIT} }
        [attack]
            name=sword
            description= _"sword"
            type=blade
            range=melee
            damage=5
            number=4
            icon=attacks/sword-elven.png
        [/attack]
        [attack]
            name=bolas
            description= _"bolas"
            type=impact
            range=ranged
            damage=4
            number=2
            [specials]
                {WEAPON_SPECIAL_SLOW}
            [/specials]
            icon=attacks/bolas.png
        [/attack]
        [attack_anim]
            [attack_filter]
                name=bolas
            [/attack_filter]
            [missile_frame]
                begin=-150
                end=0
                image=projectiles/bolas-n.png
                image_diagonal=projectiles/bolas-ne.png
            [/missile_frame]
            [if]
                hits=yes
                [frame]
                    begin=-300
                    end=-200
                    image=units/elves-desert/hunter-ranged-1.png
                    sound=hatchet.wav
                [/frame]
            [/if]
            [else]
                hits=no
                [frame]
                    begin=-300
                    end=-200
                    image=units/elves-desert/hunter-ranged-1.png
                    sound=hatchet-miss.wav
                [/frame]
            [/else]
            [frame]
                begin=-200
                end=-100
                image=units/elves-desert/hunter-ranged-2.png
            [/frame]
            [frame]
                begin=-100
                end=0
                image=units/elves-desert/hunter-ranged-3.png
            [/frame]
            {SOUND:SLOW}
        [/attack_anim]
        [attack_anim]
            [attack_filter]
                name=sword
            [/attack_filter]
            [if]
                hits=yes
                [frame]
                    begin=-101
                    end=100
                    image=units/elves-desert/hunter-melee.png
                    sound={SOUND_LIST:SWORD_SWISH}
                [/frame]
            [/if]
            [else]
                hits=no
                [frame]
                    begin=-101
                    end=100
                    image=units/elves-desert/hunter-melee.png
                    sound={SOUND_LIST:MISS}
                [/frame]
            [/else]
        [/attack_anim]
        [female]
            name= _ "female^Desert Hunter"
            gender=female
            die_sound={SOUND_LIST:ELF_FEMALE_HIT}
            {DEFENSE_ANIM "units/elves-desert/hunter-defend.png" units/elves-desert/hunter.png {SOUND_LIST:ELF_FEMALE_HIT} }
        [/female]
    [/unit]
#enddef

#wmllint: usage of "Desert Hunter" is mixed fighter 

{DESERT_HUNTER "" 20 false}
{DESERT_HUNTER 2 21 true}
{DESERT_HUNTER 3 22 true}
{DESERT_HUNTER 4 23 true}
{DESERT_HUNTER 5 24 true}
{DESERT_HUNTER 6 25 true}
{DESERT_HUNTER 7 26 true}
{DESERT_HUNTER 8 27 true}
{DESERT_HUNTER 9 28 true}
{DESERT_HUNTER 10 29 true}
{DESERT_HUNTER 11 30 true}
