#textdomain wesnoth-ei

[unit_type]
    id=Shadow Lord
    # po: In the liberty textdomain exists a male unit with that name
    name= _ "female^Shadow Lord"
    race=human
    gender=female
    image="units/shadow-mage/shadow-lord.png"
    hitpoints=42 # very fragile for a L3
    [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=150
    level=3
    alignment=liminal # swapped from Liberty's chaotic
    advances_to=null
    cost=56
    {AMLA_DEFAULT}
    usage=mixed fighter
    description= _ "Few humans fathom the secrets of light and dark magic and retain their sanity. Those that can master that balance become Shadow Lords, fully existing neither in the world of light nor the world of darkness. No longer needing physical weapons, they are fearsome to both their enemies and those they fight alongside."
    die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
    [standing_anim]
        start_time=0
        [frame]
            image="units/shadow-mage/shadow-lord.png:70,units/shadow-mage/shadow-lord-[1~7].png:70"
        [/frame]
    [/standing_anim]
    {DEFENSE_ANIM "units/shadow-mage/shadow-lord-defend1.png" "units/shadow-mage/shadow-lord-defend2.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
    [attack]
        name=astral blade
        # po: Translation for this weapon can be taken from liberty textdomain
        description=_"astral blade"
        icon=attacks/sword-astral.png
        type=arcane
        range=melee
        damage=9
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=blast wave
        # po: The secondary attack of this unit is named shadow wave, known from the Dark Adept line
        description=_"blast wave"
        icon=attacks/blast-wave.png
        type=impact
        range=ranged
        damage=14
        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=8
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]

    [attack_anim]
        [filter_attack]
            name=astral blade
        [/filter_attack]
        start_time=-250
        [frame]
            image="units/shadow-mage/shadow-lord-defend1.png:125,units/shadow-mage/shadow-lord-sword[2~4].png:125"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
        [frame]
            image="units/shadow-mage/shadow-lord.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/fireball-impact-[13~11].png~CROP(5,0,90,90):[50*2,100]"
                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-lord-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-lord-spell.png:400"
        [/frame]
        {SOUND:HIT_AND_MISS magic-dark.ogg magic-dark-miss.ogg -200}
    [/attack_anim]
[/unit_type]
