#textdomain wesnoth-utbs
[unit_type]
    id=Desert Marksman
    name= _ "Desert Marksman"
    race=elf
    image=units/elves-desert/marksman.png
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=37
    movement_type=desert_elf
    movement=6
    experience=90
    level=2
    alignment=lawful
    advances_to=Desert Sharpshooter
    cost=60
    usage=archer
    description= _ "Desert Marksman are expert in use of the bow. Though their bows and arrows are not as fine as those of their ancestors, they continue to hone their skill. This great skill with the bow compensates for their lack of skill in melee combat."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MARKSMAN}
    die_sound={SOUND_LIST:ELF_HIT}
    # melee attack increased from 6-2 to 7-2
    # ranged attack decreased from 9-4 to 8-4
    [attack]
        name=sword
        description= _"sword"
        type=blade
        range=melee
        damage=7
        number=2
        icon=attacks/sword-elven.png
    [/attack]
    [attack]
        name=longbow
        description= _"longbow"
        type=pierce
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
        range=ranged
        damage=8
        number=4
        icon=attacks/bow-elven-magic.png
    [/attack]
    [death]
        start_time=0
        [frame]
            image="units/elves-desert/marksman-die-[1~5].png:[160,220,180,200,220]"
        [/frame]
    [/death]
    {DEFENSE_ANIM_RANGE "units/elves-desert/marksman-sword-defend.png" "units/elves-desert/marksman-sword.png" {SOUND_LIST:ELF_HIT} melee }
    {DEFENSE_ANIM_RANGE "units/elves-desert/marksman-bow-defend.png" "units/elves-desert/marksman-bow.png" {SOUND_LIST:ELF_HIT} ranged }
    [attack_anim]
        [filter_attack]
            name=longbow
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]
        start_time=-475
        [frame]
            image="units/elves-desert/marksman-bow.png:75"
        [/frame]
        {SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -400}
        [frame]
            image="units/elves-desert/marksman-bow-attack[1~4].png:[75*2,100,150]"
        [/frame]
        [frame]
            image="units/elves-desert/marksman-bow.png:75"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-200
        [frame]
            image="units/elves-desert/marksman-sword.png:25"
        [/frame]
        [frame]
            image="units/elves-desert/marksman-sword-[1~3].png:[100,175,75]"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
        [frame]
            image="units/elves-desert/marksman-sword.png:25"
        [/frame]
    [/attack_anim]
    [female]
        name= _ "female^Desert Marksman"
        gender=female
        image="units/elves-desert/marksman+female.png"
        die_sound={SOUND_LIST:ELF_FEMALE_HIT}
        {DEFENSE_ANIM_RANGE "units/elves-desert/marksman+female-sword-defend.png" "units/elves-desert/marksman+female-sword.png" {SOUND_LIST:ELF_FEMALE_HIT} melee}
        {DEFENSE_ANIM_RANGE "units/elves-desert/marksman+female-bow-defend.png" "units/elves-desert/marksman+female-bow.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged}
        [death]
            [frame]
                image="units/elves-desert/marksman+female-die-[1~3].png:[160,220,180]"
            [/frame]
            [frame]
                image="units/elves-desert/marksman-die-[4,5].png:[200,220]"
            [/frame]
        [/death]
        [attack_anim]
            [filter_attack]
                name=longbow
            [/filter_attack]
            [frame]
                image="units/elves-desert/marksman+female-bow.png:75"
            [/frame]
            [frame]
                image="units/elves-desert/marksman+female-bow-attack[1~4].png:[75*2,100,150]"
            [/frame]
            [frame]
                image="units/elves-desert/marksman+female-bow.png:75"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=sword
            [/filter_attack]
            [frame]
                image="units/elves-desert/marksman+female-sword.png:25"
            [/frame]
            [frame]
                image="units/elves-desert/marksman+female-sword-[1~3].png:[100,175,75]"
            [/frame]
            [frame]
                image="units/elves-desert/marksman+female-sword.png:25"
            [/frame]
        [/attack_anim]
    [/female]
[/unit_type]
