#textdomain wesnoth-units
[unit_type]
    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"
    profile="portraits/humans/dark-adept.png"
    ellipse="misc/ellipse"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=28
    movement_type=smallfoot
    movement=5
    experience=48
    level=1
    alignment=chaotic
    advances_to=Dark Sorcerer
    cost=16
    usage=archer
    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} }
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/humans/transparent/dark-adept.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/humans/transparent/dark-adept.png"
    [/portrait]
    [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]
        [filter_attack]
            range=ranged
        [/filter_attack]
        [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]
    [recruiting_anim]
        [filter_second]
            race=undead
        [/filter_second]
        [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]
        [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]
        [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]
    [/recruiting_anim]
    [female]
        gender=female
        name= _ "female^Dark Adept"
        image="units/undead-necromancers/adept+female.png"
        profile="portraits/humans/dark-adept+female.png"
        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} }
        # Base image is drawn for the right side.
        [portrait]
            size=400
            side="left"
            mirror="true"
            image="portraits/humans/transparent/dark-adept+female.png"
        [/portrait]
        [portrait]
            size=400
            side="right"
            mirror="false"
            image="portraits/humans/transparent/dark-adept+female.png"
        [/portrait]
        [recruiting_anim]
            [filter_second]
                race=undead
            [/filter_second]
            [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]
            [frame]
                image="units/undead-necromancers/adept+female-magic-3.png"
            [/frame]
            [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]
        [/recruiting_anim]
        [attack_anim]
            [filter_attack]
                range=ranged
            [/filter_attack]
            [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_type]
