#textdomain wesnoth-units
[unit]
    id=Shadow
    name= _ "Shadow"
    race=undead
    image="units/undead/shadow-s-2.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=24
    movement_type=undeadspirit
    movement=7
    experience=100
    level=2
    alignment=chaotic
    advanceto=Nightgaunt
    cost=38
    usage=scout
    unit_description= _ "When light came into the world and gave form to the unknown, fear was forced to retreat into darkness. Since that day, the shadows of the world have held terror for humanity, though it knows not why.

That is a question which is easily answered by a necromancer."+{SPECIAL_NOTES}+{SPECIAL_NOTES_BACKSTAB}+{SPECIAL_NOTES_SPIRIT}+{SPECIAL_NOTES_NIGHTSTALK}+{SPECIAL_NOTES_SKIRMISHER}
    die_sound=wail-long.wav
    [abilities]
        {ABILITY_NIGHTSTALK}
        {ABILITY_SKIRMISHER}
    [/abilities]
    [defend]
        direction=s,se,sw
        start_time=-126
        [if]
            hits=hit,kill
            offset=0.0~-0.05:126,-0.05~0.0:126
            alpha=0.8~0.5:126,0.5~0.8:126
            [frame]
                duration=1
                image="units/undead/shadow-s-2.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/shadow-s-attack-1.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/shadow-s-attack-1.png"
                sound=wail-sml.wav
            [/frame]
            [frame]
                duration=1
                image="units/undead/shadow-s-2.png"
            [/frame]
        [/if]
        [else]
            hits=miss
            offset=0.0~-0.1:126,-0.1~0.0:126
            alpha=0.8~0.25:126,0.25~0.8:126
            [frame]
                duration=1
                image="units/undead/shadow-s-2.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/shadow-s-attack-1.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/shadow-s-attack-1.png"
            [/frame]
            [frame]
                duration=1
                image="units/undead/shadow-s-2.png"
            [/frame]
        [/else]
    [/defend]
    [defend]
        direction=n,ne,nw
        start_time=-126
        [if]
            hits=hit,kill
            offset=0.0~-0.05:126,-0.05~0.0:126
            alpha=0.8~0.5:126,0.5~0.8:126
            [frame]
                duration=1
                image="units/undead/shadow-n-2.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/shadow-n-attack-1.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/shadow-n-attack-1.png"
                sound=wail-sml.wav
            [/frame]
            [frame]
                duration=1
                image="units/undead/shadow-n-2.png"
            [/frame]
        [/if]
        [else]
            hits=miss
            offset=0.0~-0.1:126,-0.1~0.0:126
            alpha=0.8~0.25:126,0.25~0.8:126
            [frame]
                duration=1
                image="units/undead/shadow-n-2.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/shadow-n-attack-1.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/shadow-n-attack-1.png"
            [/frame]
            [frame]
                duration=1
                image="units/undead/shadow-n-2.png"
            [/frame]
        [/else]
    [/defend]


    [attack]
        name=claws
        description=_"claws"
        type=blade
        icon=attacks/claws-undead.png
        range=melee
        damage=8
        number=3
        [specials]
            {WEAPON_SPECIAL_BACKSTAB}
        [/specials]
    [/attack]
    [attack_anim]
        [attack_filter]
            name=claws
        [/attack_filter]
		start_time=-500
		offset=0.0~1.0:550,0.0:225
		alpha=0.8~0.7:350,0.7~0.0:200,0.0~0.8:225
        direction=s,se,sw

        [frame]
			duration=25
            image="units/undead/shadow-s-2.png"
        [/frame]
        [frame]
			duration=75
            image="units/undead/shadow-s-attack-1.png"
        [/frame]
        [frame]
			duration=75
            image="units/undead/shadow-s-attack-2.png"
        [/frame]
        [frame]
			duration=50
            image="units/undead/shadow-s-attack-3.png"
            sound=wail-sml.wav
        [/frame]
        [if]
            hits=no
            [frame]
				duration=50
				image="units/undead/shadow-s-attack-4.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
				duration=50
				image="units/undead/shadow-s-attack-4.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
			duration=75
            image="units/undead/shadow-s-attack-5.png"
        [/frame]
        [frame]
			duration=200
            image="units/undead/shadow-s-attack-6.png"
        [/frame]
        [frame]
			duration=100
            image="units/undead/shadow-s-attack-2.png"
        [/frame]
        [frame]
			duration=100
            image="units/undead/shadow-s-attack-1.png"
        [/frame]
        [frame]
			duration=25
            image="units/undead/shadow-s-2.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [attack_filter]
            name=claws
        [/attack_filter]
		start_time=-500
		offset=0.0~1.0:550,0.0:225
		alpha=0.8~0.7:350,0.7~0.0:200,0.0~0.8:225
        direction=n,ne,nw

        [frame]
			duration=25
            image="units/undead/shadow-n-2.png"
        [/frame]
        [frame]
			duration=75
            image="units/undead/shadow-n-attack-1.png"
        [/frame]
        [frame]
			duration=75
            image="units/undead/shadow-n-attack-2.png"
        [/frame]
        [frame]
			duration=50
            image="units/undead/shadow-n-attack-3.png"
            sound=wail-sml.wav
        [/frame]
        [if]
            hits=no
            [frame]
				duration=50
				image="units/undead/shadow-n-attack-4.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
				duration=50
				image="units/undead/shadow-n-attack-4.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
			duration=75
            image="units/undead/shadow-n-attack-5.png"
        [/frame]
        [frame]
			duration=200
            image="units/undead/shadow-n-attack-6.png"
        [/frame]
        [frame]
			duration=100
            image="units/undead/shadow-n-attack-2.png"
        [/frame]
        [frame]
			duration=100
            image="units/undead/shadow-n-attack-1.png"
        [/frame]
        [frame]
			duration=25
            image="units/undead/shadow-n-2.png"
        [/frame]
    [/attack_anim]


    [standing_anim]
        direction=s,se,sw
        start_time=0
        alpha=0.8~0.4:1400,0.4~0.6:600,0.6~0.4:600,0.4~0.8:1400
        [frame]
            duration=250
            image="units/undead/shadow-s-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-1.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-3.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-1.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-3.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-1.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-3.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-1.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-s-3.png"
        [/frame]
    [/standing_anim]
    [standing_anim]
        direction=n,ne,nw
        start_time=0
        alpha=0.8~0.4:1400,0.4~0.6:600,0.6~0.4:600,0.4~0.8:1400
        [frame]
            duration=250
            image="units/undead/shadow-n-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-1.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-3.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-1.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-3.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-1.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-3.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-1.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-2.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/shadow-n-3.png"
        [/frame]
    [/standing_anim]
[/unit]
