#textdomain wesnoth-ei

[unit_type]
    id=Shadow Mage
    # po: In the liberty textdomain exists a male unit with that name
    name= _ "female^Shadow Mage"
    race=human
    gender=female
    image="units/shadow-mage/shadow-mage.png"
    hitpoints=35 # very fragile for a L2
    [abilities]
        {ABILITY_NIGHTSTALK} # swapped from Liberty's leadership, since 1) you already have Gweddry and 2) leadership doesn't really fit Gaennell's character
        {ABILITY_SKIRMISHER}
    [/abilities]
    movement_type=elusivefoot
    movement=6
    experience=120
    level=2
    alignment=liminal # swapped from Liberty's chaotic
    advances_to=Shadow Lord
    cost=39
    usage=mixed fighter
    description= _ "Obsessive study over the forces of light and dark have turned the shadow mages into feared fighters. Cloaked in mist, they have been known to vanish into the night swifter than any ghost. While their zealous study has left their bodies exhausted and enfeebled, they instead channel their energies into devastatingly accurate melee attacks."
    die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
    [standing_anim]
        start_time=0
        [frame]
            image="units/shadow-mage/shadow-mage.png:100,units/shadow-mage/shadow-mage-[1~5].png:[80*2,100,80*2]"
        [/frame]
    [/standing_anim]
    {DEFENSE_ANIM "units/shadow-mage/shadow-mage-defend1.png" "units/shadow-mage/shadow-mage-defend2.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
    [attack]
        name=short sword
        #textdomain wesnoth-units
        description=_"short sword"
        #textdomain wesnoth-ei
        icon=attacks/sword-astral-short.png
        type=arcane
        range=melee
        damage=6
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=blast wave
        # po: The secondary attack of this unit is named shadow wave (same as the Dark Sorcerer’s)
        description=_"blast wave"
        icon=attacks/blast-wave.png
        type=impact
        range=ranged
        damage=11
        number=2
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=shadow wave
        #textdomain wesnoth-units
        description=_"shadow wave"
        #textdomain wesnoth-ei
        icon=attacks/dark-missile.png
        type=arcane
        range=ranged
        damage=6
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]

    [attack_anim]
        [filter_attack]
            name=short sword
        [/filter_attack]
        start_time=-250
        [frame]
            image="units/shadow-mage/shadow-mage-sword[1~4].png:125"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
        [frame]
            image="units/shadow-mage/shadow-mage.png:200"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=blast wave
        [/filter_attack]
        start_time=-250
        missile_start_time=-175
        [if]
            hits=yes
            [missile_frame]
                image="projectiles/shadow-blast-n-[1~3].png:[50*2,100]"
                image_diagonal="projectiles/shadow-blast-ne-[1~3].png:[50*2,100]"
            [/missile_frame]
        [/if]
        [else]
            hits=no
            [missile_frame]
                image="projectiles/shadow-blast-n-[1,2,1].png:[50*2,100]"
                image_diagonal="projectiles/shadow-blast-ne-[1,2,1].png:[50*2,100]"
                alpha=1.0~0.0:200
            [/missile_frame]
        [/else]
        {SOUND:HIT_AND_MISS lightning.ogg lightning-miss.ogg -200}
        [frame]
            image="units/shadow-mage/shadow-mage-spell.png:400"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=shadow wave
        [/filter_attack]
        {MISSILE_FRAME_SHADOW_WAVE}
        start_time=-400
        [frame]
            image="units/shadow-mage/shadow-mage-spell.png"
        [/frame]
        {SOUND:HIT_AND_MISS magic-dark.ogg magic-dark-miss.ogg -200}
    [/attack_anim]
[/unit_type]
