#textdomain wesnoth-units
[unit]
    id=Dark Adept
    name= _ "Dark Adept"
    gender=male,female
    race=human
    ignore_race_traits=yes
    {TRAIT_QUICK}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    image="units/undead-necromancers/adept.png"
    ellipse="misc/ellipse"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=28
    movement_type=smallfoot
    movement=5
    experience=48
    level=1
    alignment=chaotic
    advanceto=Dark Sorcerer
    cost=16
    usage=archer
    unit_description= _ "To attract any practitioners, the lure of black magic must be a great prize indeed, for anyone caught practicing the art in the civilized world is subject to a death sentence. And yet there are those who pursue this art, for the prize offered is nothing less than immortality. Hidden away in secret cults, or initiated into the dark orders of the underworld, the training which these fanatics must endure often drives them to exhaustion and enfeeblement.

In such condition, their only weapon is the craft they have so committed themselves to learning."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MAGICAL}+{SPECIAL_NOTES_ARCANE}
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/undead-necromancers/adept-defend-2.png" "units/undead-necromancers/adept-defend-1.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=chill wave
        description=_"chill wave"
        type=cold
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=10
        number=2
        icon=attacks/iceball.png
    [/attack]
    [attack]
        name=shadow wave
        description=_"shadow wave"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=7
        number=2
        icon=attacks/dark-missile.png
    [/attack]
    [death]
        [frame]
            begin=0
            end=100
            image="units/undead-necromancers/adept-die1.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/undead-necromancers/adept-die2.png"
        [/frame]
        [frame]
            begin=200
            end=300
            image="units/undead-necromancers/adept-die3.png"
        [/frame]
        [frame]
            begin=300
            end=400
            image="units/undead-necromancers/adept-die4.png"
        [/frame]
        [frame]
            begin=400
            end=520
            image="units/undead-necromancers/adept-die5.png"
        [/frame]
        [frame]
            begin=520
            end=640
            image="units/undead-necromancers/adept-die6.png"
        [/frame]
        [frame]
            begin=640
            end=780
            image="units/undead-necromancers/adept-die7.png"
        [/frame]
        [frame]
            begin=780
            end=900
            image="units/undead-necromancers/adept-die8.png"
        [/frame]
    [/death]
    [attack_anim]
        [attack_filter]
            range=ranged
        [/attack_filter]
        [missile_frame]
            begin=-50
            end=150
            image="projectiles/darkmissile-n.png"
            image_diagonal="projectiles/darkmissile-ne.png"
        [/missile_frame]
        [frame]
            begin=-450
            end=-420
            image="units/undead-necromancers/adept.png"
        [/frame]
        [frame]
            begin=-420
            end=-395
            image="units/undead-necromancers/adept-magic-1.png"
        [/frame]
        [frame]
            begin=-395
            end=-320
            image="units/undead-necromancers/adept-magic-2.png"
        [/frame]
        [frame]
            begin=-320
            end=-300
            image="units/undead-necromancers/adept-magic-3.png"
        [/frame]
        [frame]
            begin=-300
            end=-250
            image="units/undead-necromancers/adept-magic-3.png"
            halo=halo/undead/dark-magic-1.png
            halo_x,halo_y=0,-12
        [/frame]
        [frame]
            begin=-250
            end=-200
            image="units/undead-necromancers/adept-magic-3.png"
            halo=halo/undead/dark-magic-2.png
            halo_x,halo_y=0,-12
        [/frame]
        [frame]
            begin=-200
            end=-150
            image="units/undead-necromancers/adept-magic-3.png"
            halo=halo/undead/dark-magic-3.png
            halo_x,halo_y=0,-12
        [/frame]
        [frame]
            begin=-150
            end=-100
            image="units/undead-necromancers/adept-magic-3.png"
            halo=halo/undead/dark-magic-4.png
            halo_x,halo_y=0,-12
        [/frame]
        [frame]
            begin=-100
            end=-50
            image="units/undead-necromancers/adept-magic-3.png"
            halo=halo/undead/dark-magic-5.png
            halo_x,halo_y=0,-12
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-50
                end=0
                image="units/undead-necromancers/adept-magic-3.png"
                halo=halo/undead/dark-magic-6.png
                halo_x,halo_y=0,-12
                sound=magic-dark-miss.ogg
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-50
                end=0
                image="units/undead-necromancers/adept-magic-3.png"
                halo=halo/undead/dark-magic-6.png
                halo_x,halo_y=0,-12
                sound=magic-dark.ogg
            [/frame]
        [/else]
        [frame]
            begin=0
            end=50
            image="units/undead-necromancers/adept-magic-2.png"
        [/frame]
        [frame]
            begin=50
            end=90
            image="units/undead-necromancers/adept-magic-1.png"
        [/frame]
        [frame]
            begin=90
            end=100
            image="units/undead-necromancers/adept.png"
        [/frame]
    [/attack_anim]
    [female]
        gender=female
        name= _ "female^Dark Adept"
        image="units/undead-necromancers/adept+female.png"
        unit_description= _ "female^To attract any practitioners, the lure of black magic must be a great prize indeed, for anyone caught practicing the art in the civilized world is subject to a death sentence. And yet there are those who pursue this art, for the prize offered is nothing less than immortality. Hidden away in secret cults, or initiated into the dark orders of the underworld, the training which these fanatics must endure often drives them to exhaustion and enfeeblement.

In such condition, their only weapon is the craft they have so committed themselves to learning."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MAGICAL}
        die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
        {DEFENSE_ANIM "units/undead-necromancers/adept+female-defend-2.png" "units/undead-necromancers/adept+female-defend-1.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
        [attack_anim]
            [attack_filter]
                range=ranged
            [/attack_filter]
            [frame]
                image="units/undead-necromancers/adept+female.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female-magic-1.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female-magic-2.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female-magic-3.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female-magic-3.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female-magic-3.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female-magic-3.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female-magic-3.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female-magic-3.png"
            [/frame]
            [if]
                [frame]
                    image="units/undead-necromancers/adept+female-magic-3.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/undead-necromancers/adept+female-magic-3.png"
                [/frame]
            [/else]
            [frame]
                image="units/undead-necromancers/adept+female-magic-2.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female-magic-1.png"
            [/frame]
            [frame]
                image="units/undead-necromancers/adept+female.png"
            [/frame]
        [/attack_anim]
    [/female]
[/unit]
