#textdomain wesnoth-units
[unit_type]
    id=Elvish Marksman
    name= _ "Elvish Marksman"
    race=elf
    gender=male,female
    image="units/elves-wood/marksman.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    profile="portraits/elves/marksman.png"
    hitpoints=37
    movement_type=woodland
    movement=6
    experience=80
    level=2
    alignment=neutral
    advances_to=Elvish Sharpshooter
    cost=41
    usage=archer
    description= _ "Elves are wonderously keen-sighted, a gift which contributes to their mastery of the bow. An elf practiced at archery can hit targets that a man couldn’t even see, and can nock a second arrow almost as soon as the first is let fly. Realizing this prodigious skill does come with one cost, that being a lack of practice with the sword."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MARKSMAN}
    die_sound={SOUND_LIST:ELF_HIT}
    # Base image is drawn for the right side.
    [portrait]
        size=400
        side="left"
        mirror="true"
        image="portraits/elves/transparent/marksman.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="false"
        image="portraits/elves/transparent/marksman.png"
    [/portrait]
    [death]
        start_time=0
        [frame]
            image="units/elves-wood/marksman-die-[1~5].png:[160,220,180,200,220]"
        [/frame]
    [/death]
    [attack]
        name=sword
        description=_"sword"
        icon=attacks/sword-elven.png
        type=blade
        range=melee
        damage=6
        number=2
    [/attack]
    [attack]
        name=longbow
        description=_"longbow"
        icon=attacks/bow-elven-magic.png
        type=pierce
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
        range=ranged
        damage=9
        number=4
    [/attack]
    {DEFENSE_ANIM_RANGE "units/elves-wood/marksman-sword-defend.png" "units/elves-wood/marksman-sword.png" {SOUND_LIST:ELF_HIT} melee }
    {DEFENSE_ANIM_RANGE "units/elves-wood/marksman-bow-defend.png" "units/elves-wood/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-wood/marksman-bow.png:75"
        [/frame]
        {SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -400}
        [frame]
            image="units/elves-wood/marksman-bow-attack[1~4].png:[75*2,100,150]"
        [/frame]
        [frame]
            image="units/elves-wood/marksman-bow.png:75"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-200
        [frame]
            image="units/elves-wood/marksman-sword.png:25"
        [/frame]
        [frame]
            image="units/elves-wood/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-wood/marksman-sword.png:25"
        [/frame]
    [/attack_anim]
    [female]
        name= _ "female^Elvish Marksman"
        gender=female
        image="units/elves-wood/marksman+female.png"
        profile="portraits/elves/marksman+female.png"
        die_sound={SOUND_LIST:ELF_FEMALE_HIT}
        {DEFENSE_ANIM_RANGE "units/elves-wood/marksman+female-sword-defend.png" "units/elves-wood/marksman+female-sword.png" {SOUND_LIST:ELF_FEMALE_HIT} melee}
        {DEFENSE_ANIM_RANGE "units/elves-wood/marksman+female-bow-defend.png" "units/elves-wood/marksman+female-bow.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged}
        # Upon Kitty's request only on the left side.
        [portrait]
            size=400
            side="left"
            mirror="false"
            image="portraits/elves/transparent/marksman+female.png"
        [/portrait]
        # Single sided portraits are not properly supported yet so use an
        # invalid image to override the inherited version.
        [portrait]
            size=400
            side="right"
            mirror="true"
            image=" "
        [/portrait]
        [death]
            [frame]
                image="units/elves-wood/marksman+female-die-[1~3].png:[160,220,180]"
            [/frame]
            [frame]
                image="units/elves-wood/marksman-die-[4,5].png:[200,220]"
            [/frame]
        [/death]
        [attack_anim]
            [filter_attack]
                name=longbow
            [/filter_attack]
            [frame]
                image="units/elves-wood/marksman+female-bow.png:75"
            [/frame]
            [frame]
                image="units/elves-wood/marksman+female-bow-attack[1~4].png:[75*2,100,150]"
            [/frame]
            [frame]
                image="units/elves-wood/marksman+female-bow.png:75"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=sword
            [/filter_attack]
            [frame]
                image="units/elves-wood/marksman+female-sword.png:25"
            [/frame]
            [frame]
                image="units/elves-wood/marksman+female-sword-[1~3].png:[100,175,75]"
            [/frame]
            [frame]
                image="units/elves-wood/marksman+female-sword.png:25"
            [/frame]
        [/attack_anim]
    [/female]
[/unit_type]
