#textdomain wesnoth-utbs
[unit_type]
    id=Desert Hero
    name= _ "Desert Hero"
    race=elf
    image=units/elves-desert/hero.png
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=48
    movement_type=desert_elf
    movement=5
    experience=80
    level=2
    alignment=lawful
    advances_to=Desert Champion
    cost=40
    usage=fighter
    description= _ "Desert Heroes focus on individual performance on the battlefield, having tweaked their combat skills to the very maximum. Desert Heroes prefer fighting at close range with the sword, but also have some skill with the bow."
    die_sound={SOUND_LIST:ELF_HIT}
    # melee attack increased from 8-4 to 9-4
    # ranged attack decreased from 6-3 to 5-3
    [attack]
        name=sword
        description= _"sword"
        type=blade
        range=melee
        damage=9
        number=4
        icon=attacks/sword-elven.png
    [/attack]
    [attack]
        name=bow
        description= _"bow"
        type=pierce
        range=ranged
        damage=5
        number=3
        icon=attacks/bow-elven.png
    [/attack]
    {DEFENSE_ANIM_RANGE "units/elves-desert/hero-defend.png" "units/elves-desert/hero.png" {SOUND_LIST:ELF_HIT} melee }
    {DEFENSE_ANIM_RANGE "units/elves-desert/hero-bow-defend.png" "units/elves-desert/hero-bow.png" {SOUND_LIST:ELF_HIT} ranged }
    [attack_anim]
        [filter_attack]
            name=bow
        [/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=-445
        [frame]
            image="units/elves-desert/hero-bow.png:65"
        [/frame]
        {SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -380}
        [frame]
            image="units/elves-desert/hero-bow-attack[1~4].png:[75*2,100,130]"
        [/frame]
        [frame]
            image="units/elves-desert/hero-bow.png:65"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-200
        [frame]
            image="units/elves-desert/hero.png:25"
        [/frame]
        [frame]
            image="units/elves-desert/hero-melee-[1~4].png:[65,35,150,45]"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
        [frame]
            image="units/elves-desert/hero-defend.png:60"
        [/frame]
        [frame]
            image="units/elves-desert/hero.png:20"
        [/frame]
    [/attack_anim]
[/unit_type]
