#textdomain wesnoth-units
[unit_type]
    id=Drake Glider
    name= _ "Drake Glider"
    race=drake
    image="units/drakes/glider.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    ellipse="misc/ellipse"
    profile="portraits/drakes/glider.png"
    hitpoints=32
    movement_type=drakeglide
    movement=8
    experience=35
    level=1
    alignment=lawful
    advances_to=Sky Drake
    undead_variation=drake
    cost=16
    usage=scout

    description= _ "Many drakes enjoy the flow of air over scales, leading them to don the light robes of the Glider caste. The long forays to the far reaches of the tribal territory are their passion, though other drakes often wonder what could lead someone to take on the drudgery of hunting when more glory could be found on the battlefield.

Most often, Gliders hunt larger game like deer, swine, or dolphins; the drakes' ancestral ability to aim fire, hampered in other castes by armor, is invaluable for flushing and herding the quarry without harming it. If a Glider is called to the battlefield, he prefers to harass the enemy from a distance – and if all else fails, he will fight with his feet, keeping his precious wings as far from the enemy as possible."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MARKSMAN}

    die_sound=drake-die.ogg
    {DEFENSE_ANIM "units/drakes/glider-defend-2.png" "units/drakes/glider-defend-1.png" {SOUND_LIST:DRAKE_HIT} }
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/drakes/transparent/glider.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/drakes/transparent/glider.png"
    [/portrait]
    {DRAKE_STANDING_ANIM glider}
    {DRAKE_MOVEMENT_ANIM glider}
    {DRAKE_WEAPON_ANIM glider}
    [attack]
        name=slam
        description=_"slam"
        type=impact
        range=melee
        damage=6
        number=2
        icon=attacks/slam-drake.png
    [/attack]
    [attack]
        name=fire breath
        description=_"fire breath"
        icon=attacks/fire-breath-drake.png
        type=fire
        range=ranged
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
        damage=3
        number=3
    [/attack]
    {DRAKE_FIRE_ANIM_S_DIAGONAL glider 35,40}
    {DRAKE_FIRE_ANIM_N_DIAGONAL_CURRENT glider 35,-20}
    {DRAKE_FIRE_ANIM_S glider 8,50}
    {DRAKE_FIRE_ANIM_N_CURRENT glider 8,-50}

    [attack_anim]
        [filter_attack]
            name=slam
        [/filter_attack]
        offset=0.0~0.2,0.2~0.7,0.7~0.2,0.2~0.0
        start_time=-400
        [frame]
            duration=100
            image="units/drakes/glider-kick-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/drakes/glider-kick-2.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/drakes/glider-kick-3.png"
                sound=club.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/drakes/glider-kick-3.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/drakes/glider-kick-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/drakes/glider-kick-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/drakes/glider-kick-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/drakes/glider-kick-2.png"
        [/frame]
    [/attack_anim]
[/unit_type]
