#textdomain wesnoth-Invasion_from_the_Unknown

#define ELYNIA_ANIM_DEFEND
    {DEFENSE_ANIM_RANGE "units/faeries/elynia-defense.png" "units/faeries/elynia-attack-melee-1.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/elynia-defense.png" "units/faeries/elynia-attack-melee-1.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
#enddef

#define ELYNIA_ANIM_HEALING
    [healing_anim]
        start_time=-300
        [frame]
            image="units/faeries/elynia.png:75,units/faeries/elynia-attack-ranged-[1,2,1].png:[75,300,75],units/faeries/elynia.png:75"
            halo="halo/elven/druid-healing[1,2~7,8].png:[65,75*6,65]"
        [/frame]
    [/healing_anim]
#enddef

#define ELYNIA_ANIM_ATTACK_STAFF
    [attack_anim]
        [filter_attack]
            name=staff
        [/filter_attack]

        start_time=-450
        offset=0.0~-0.2:150,-0.2~0.9:350,0.9~0.0
        [frame]
            image="units/faeries/elynia-attack-melee-[1~3,4~5,6,7,1].png:[75*2,100,125*2,100,75*2]"
        [/frame]

        {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -100}
    [/attack_anim]
#enddef

#define ELYNIA_ANIM_ATTACK_ENSNARE
    [attack_anim]
        [filter_attack]
            name=ensnare
        [/filter_attack]

        missile_start_time=-200
        [missile_frame]
            duration=250
            offset=1.0
            image="projectiles/entangle.png"
            image_diagonal="projectiles/entangle.png"
        [/missile_frame]

        start_time=-450
        [frame]
            image="units/faeries/elynia.png:75,units/faeries/elynia-attack-ranged-[1,2,1].png:[75,300,75],units/faeries/elynia.png:75"
            halo="halo/elven/nature-halo[1~8].png:75"
            halo_x,halo_y=0,-12
        [/frame]

        attack_sound_start_time=-75
        [attack_sound_frame]
            sound=entangle.wav
        [/attack_sound_frame]
    [/attack_anim]
#enddef

#define ELYNIA_ANIM_ATTACK_FAERIE_FIRE
    [attack_anim]
        [filter_attack]
            name=faerie fire
        [/filter_attack]

        {MISSILE_FRAME_FAERIE_FIRE}

        start_time=-450
        [frame]
            image="units/faeries/elynia.png:75,units/faeries/elynia-attack-ranged-[1~2,2,2~1].png:75,units/faeries/elynia.png:75"
            halo="halo/elven/faerie-fire-halo[1~7].png:75"
            halo_x,halo_y=19,-28
        [/frame]

        {SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-faeriefire-miss.ogg -450}
    [/attack_anim]
#enddef

#define ELYNIA_ANIM_MYSTIC_FIRE
    [attack_anim]
        [filter_attack]
            name=mystic fire
        [/filter_attack]
        start_time=-400

        {MISSILE_FRAME_FAERIE_MYSTIC_FIRE}

        [frame]
            image="units/faeries/elynia.png:75,units/faeries/elynia-attack-ranged-[1,2,1].png:[75,250,75],units/faeries/elynia.png:75"
        [/frame]

        {SOUND:HIT_AND_MISS torch.ogg torch-miss.ogg -200}

        [if]
            hits=yes
            {BURST_FRAME_FAERIE_MYSTIC_FIRE}
        [/if]
    [/attack_anim]
#enddef

#define ELYNIA_ANIM_FRAME_SHINE _BLEND_COLOR
    [frame]
        image="units/faeries/elynia.png:3200"
        blend_ratio=0~0.75:1600,0.75~0:1600
        blend_color={_BLEND_COLOR}
    [/frame]
#enddef

#define ELYNIA_ANIM_EXTRA
    [extra_anim]
        flag=shine_golden
        start_time=0

        {ELYNIA_ANIM_FRAME_SHINE 255,255,127}
    [/extra_anim]
    [extra_anim]
        flag=shine_white
        start_time=0

        {ELYNIA_ANIM_FRAME_SHINE 255,255,255}
    [/extra_anim]
#enddef

#define ELYNIA_ANIM_ATTACK_UNION
    [attack_anim]
        [filter_attack]
            name=union
        [/filter_attack]

        [if]
            hits=yes

            {UNION_FOG}

            {UNION_BEAM}

            sound1_start_time=-450
            [sound1_frame]
                sound={SOUND_LIST:HOLY}
            [/sound1_frame]

            sound2_start_time=-400
            [sound2_frame]
                sound={SOUND_LIST:UNION_HIT}
            [/sound2_frame]
        [/if]

        start_time=-650
        offset=0.0
        blend_color=255,255,255
        blend_ratio=0.0~0.6:500,0.6~0.0:200

        [frame]
            image="units/faeries/elynia.png:75,units/faeries/elynia-attack-ranged-[1,2,1].png:[75,300,75],units/faeries/elynia.png:75"
        [/frame]

        {SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-dark-miss.ogg -350}
    [/attack_anim]
#enddef

#define ELYNIA_ANIM_ATTACK_THORNS
    [attack_anim]
        [filter_attack]
            name=thorns
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image,image_diagonal="projectiles/thorns.png","projectiles/thorns-ne.png"
        [/missile_frame]
        start_time=-250
        [frame]
            image="units/faeries/elynia.png:75,units/faeries/elynia-attack-ranged-[1,2,1].png:[75,300,75],units/faeries/elynia.png:75"
            halo="halo/elven/nature-halo[1~8].png:75"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg 125}
    [/attack_anim]
#enddef

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Invasion_from_the_Unknown

#
# Fake unit used for a [move_unit_fake] across
# impassable hexes, that this unit would not be able to cross
# otherwise.
#
[unit_type]
    id=Fake Chaos Warlord
    name=""
    race=monster
    gender=female
    image="units/shaxthal/warlord+withmask.png"
    hitpoints=1
    movement_type=fly
    [movement_costs]
        impassable=1
    [/movement_costs]
    [defense]
        impassable=50
    [/defense]
    movement=5
    experience=1
    level=1
    alignment=neutral
    advances_to=null
    cost=1
    usage=scout
    description=""
    hide_help=true
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Fake Explosion
    name=""
    race=monster
    image="misc/blank-hex.png"
    ellipse=none
    hitpoints=0
    movement_type=fly
    movement=0
    experience=0
    level=1
    alignment=neutral
    advances_to=null
    cost=1
    usage=scout
    description="" # wmllint: ignore
    hide_help=true
    die_sound=explosion-big.ogg,explosion.ogg,bot-huge-explosion.ogg
    [death]
        start_time=0
        [frame]
            duration=75
            image="projectiles/fire-burst-big-1.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fire-burst-big-2.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fire-burst-big-3.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fire-burst-big-4.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fire-burst-big-5.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fire-burst-big-6.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fire-burst-big-7.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fire-burst-big-8.png"
        [/frame]
        [frame]
            duration=50
            image="misc/blank-hex.png"
        [/frame]
    [/death]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

# wmllint: notecheck off
[unit_type]
    id=Union Orb
    name=""
    image="units/fake/orb-union-lux.png"
    race=monster
    hitpoints=1
    movement_type=fly
    movement=10
    level=0
    alignment=neutral
    advances_to=null
    hide_help=true
    [abilities]
        {ABILITY_SKIRMISHER}
    [/abilities]
    [movement_costs]
        deep_water=1
        shallow_water=1
        reef=1
        swamp_water=1
        flat=1
        sand=1
        forest=1
        hills=1
        mountains=1
        village=1
        castle=1
        cave=1
        frozen=1
        unwalkable=1
        impassable=1
        fungus=1
    [/movement_costs]

#define UNION_GLOBE_ANIMATION ANIMATION_FRAMES
    [standing_anim]
        {ANIMATION_FRAMES}
    [/standing_anim]
    [movement_anim]
        {ANIMATION_FRAMES}
    [/movement_anim]
#enddef

    {UNION_GLOBE_ANIMATION (
        start_time=0
        auto_vflip=yes
        direction=ne,nw,se,sw
        [frame]
            duration=100
            image="units/fake/orb-union-lux.png"
        [/frame]
    )}

    {UNION_GLOBE_ANIMATION (
        start_time=0
        auto_vflip=yes
        direction=n,s
        [frame]
            duration=100
            image="units/fake/orb-union-lux-n-s.png"
        [/frame]
    )}

    [variation]
        variation_id=tenebrae
        inherit=yes
        image="units/fake/orb-union-tenebrae.png"

        {UNION_GLOBE_ANIMATION (
            [frame]
                image="units/fake/orb-union-tenebrae.png"
            [/frame]
        )}

        {UNION_GLOBE_ANIMATION (
            [frame]
                image="units/fake/orb-union-tenebrae-n-s.png"
            [/frame]
        )}
    [/variation]

    [variation]
        variation_id=lux
        inherit=yes
    [/variation]
[/unit_type]
# wmllint: notecheck on

#undef UNION_GLOBE_ANIMATION

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Sentry Tower
    name= _ "Sentry Tower"
    race=mechanical
    image="units/mechanical/sentry-tower.png"
    hitpoints=130
    movement_type=none
    movement=1
    experience=100
    level=2
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=21
    usage=archer
    [resistance]
        impact=110
        fire=100
        pierce=90
        blade=90
        cold=20
        arcane=20
    [/resistance]
    description= _ "These immovable defensive structures stand tall and fast against any foes foolish enough to attempt to strike them down."
    die_sound=wose-die.ogg
    [attack]
        name=ballista
        description={TSTR_ATTACK_NAME_BALLISTA}
        icon="attacks/ballista.png"
        type=pierce
        range=ranged
        damage=26
        number=1
        [specials]
            {WEAPON_SPECIAL_ALWAYS_HITS}
        [/specials]
    [/attack]
    [attack]
        name=ballista
        description={TSTR_ATTACK_NAME_BALLISTA}
        icon="attacks/ballista.png"
        type=fire
        range=ranged
        damage=26
        number=1
        [specials]
            {WEAPON_SPECIAL_ALWAYS_HITS}
        [/specials]
    [/attack]

    [standing_anim]
        start_time=0
        auto_hflip=no
        [frame]
            duration=100
            image="units/mechanical/sentry-tower.png"
        [/frame]
    [/standing_anim]

    [death]
        start_time=0
        auto_hflip=no
        [frame]
            duration=100
            image="units/mechanical/sentry-tower.png"
        [/frame]
    [/death]

    [defend]
        start_time=-125
        sound_start_time=-26
        auto_hflip=no

        [frame]
            duration=250
            image="units/mechanical/sentry-tower.png"
        [/frame]

        [sound_frame]
            duration=1
        [/sound_frame]

        [if]
            hits=hit
            [sound_frame]
                duration=150
                sound=mace.wav
            [/sound_frame]
        [/if]
        [else]
            hits=miss,kill
            [sound_frame]
                duration=150
            [/sound_frame]
        [/else]
    [/defend]

    [attack_anim]
        [filter_attack]
            type=fire
        [/filter_attack]

        auto_hflip=no
        missile_start_time=-250

        [missile_frame]
            duration=250
            image="projectiles/missile-fire-n.png"
            image_diagonal="projectiles/missile-fire-ne.png"
        [/missile_frame]

        sound1_start_time=-350
        [sound1_frame]
            duration=150
            sound=ballista.ogg
        [/sound1_frame]

        sound2_start_time=-150
        [sound2_frame]
            duration=150
            sound=melee-fire.ogg
        [/sound2_frame]
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            type=pierce
        [/filter_attack]

        auto_hflip=no
        missile_start_time=-250

        [missile_frame]
            duration=250
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]

        sound_start_time=-350
        [sound_frame]
            duration=150
            sound=ballista.ogg
        [/sound_frame]
    [/attack_anim]
[/unit_type]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Chimera
    name= _ "Chimera"
    race=monster
    image="units/monsters/chimera.png"
    hitpoints=53
    movement_type=smallfoot
    movement=5
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=60
    usage=stonegazer
    undead_variation=null
    description= _ "Only a wicked evil wizard could have taken the characteristics of various monsters and have put them together in a single weapon of their cause. With three tails, a pair of feathery wings, the body of a gigantic bird and the eyes of a fearsome Cockatrice, this Chimera is not a foe to play with. Its ability to turn its opponents to stone is probably the major threat it imposes over its victims. Use extreme caution, and never look directly to its eyes."
    die_sound=hiss-die.wav
    [resistance]
        arcane=150
    [/resistance]
    {DEFENSE_ANIM "units/monsters/chimera.png" "units/monsters/chimera.png" hiss.wav}
    [attack]
        name=pincers
        description={TSTR_ATTACK_NAME_PINCERS}
        type=impact
        range=melee
        damage=4
        number=3
        attack_weight=0.02
    [/attack]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-drake.png
        type=blade
        range=melee
        damage=6
        number=2
        attack_weight=0.01
    [/attack]
    [attack]
        name=gaze
        description= _"gaze"
        type=cold
        range=ranged
        damage=2
        number=3
        [specials]
            {WEAPON_SPECIAL_PETRIFY}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=pincers
        [/filter_attack]
        [frame]
            begin=-200
            end=-150
            image="units/monsters/chimera.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-150
                end=50
                image="units/monsters/chimera.png"
                sound=pincers.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-150
                end=50
                image="units/monsters/chimera.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=50
            end=100
            image="units/monsters/chimera.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/monsters/chimera.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        [frame]
            begin=-200
            end=-150
            image="units/monsters/chimera.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-150
                end=-50
                image="units/monsters/chimera.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-150
                end=-50
                image="units/monsters/chimera.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            image="units/monsters/chimera.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=gaze
        [/filter_attack]
        {MISSILE_FRAME_STONE_GAZE}
        [frame]
            begin=-150
            end=-75
            image="units/monsters/chimera.png"
        [/frame]
        [frame]
            begin=-75
            end=0
            image="units/monsters/chimera.png"
        [/frame]
        [frame]
            begin=0
            end=75
            image="units/monsters/chimera.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=75
                end=150
                image="units/monsters/chimera.png"
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=75
                end=150
                image="units/monsters/chimera.png"
                sound=petrified.ogg
            [/frame]
        [/else]
        [frame]
            begin=150
            end=225
            image="units/monsters/chimera.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Cockatrice
    name= _ "Cockatrice"
    race=monster
    image="units/monsters/cockatrice.png"
    hitpoints=42
    movement_type=smallfoot
    movement=5
    experience=100
    level=2
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=21
    usage=stonegazer
    undead_variation=null
    description= _ "Sometimes known as ‘basilisks’, these mystical creatures are said to be able to turn the living to stone. Needless to say, this makes them extremely dangerous."
    die_sound=hiss-die.wav
    [resistance]
        arcane=150
    [/resistance]
    {DEFENSE_ANIM "units/monsters/cockatrice-defend.png" "units/monsters/cockatrice.png" hiss.wav}
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-drake.png
        type=blade
        range=melee
        damage=5
        number=2
        attack_weight=0.0
    [/attack]
    [attack]
        name=gaze
        description= _"gaze"
        type=cold
        range=ranged
        damage=2
        number=2
        [specials]
            {WEAPON_SPECIAL_PETRIFY}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        [frame]
            begin=-200
            end=-150
            image="units/monsters/cockatrice.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-150
                end=-50
                image="units/monsters/cockatrice.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-150
                end=-50
                image="units/monsters/cockatrice.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=100
            image="units/monsters/cockatrice.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=gaze
        [/filter_attack]
        {MISSILE_FRAME_STONE_GAZE}
        [frame]
            begin=-675
            end=-600
            image="units/monsters/cockatrice-attack01.png"
        [/frame]
        [frame]
            begin=-600
            end=-525
            image="units/monsters/cockatrice-attack02.png"
        [/frame]
        [frame]
            begin=-450
            end=-375
            image="units/monsters/cockatrice-attack03.png"
        [/frame]
        [frame]
            begin=-375
            end=-300
            image="units/monsters/cockatrice-attack04.png"
        [/frame]
        [frame]
            begin=-300
            end=-225
            image="units/monsters/cockatrice-attack05.png"
        [/frame]
        [frame]
            begin=-225
            end=-150
            image="units/monsters/cockatrice-attack06.png"
            sound=wail.wav
        [/frame]
        [frame]
            begin=-150
            end=-75
            image="units/monsters/cockatrice-attack07.png"
        [/frame]
        [frame]
            begin=-75
            end=0
            image="units/monsters/cockatrice-attack08.png"
        [/frame]
        [frame]
            begin=0
            end=75
            image="units/monsters/cockatrice-attack09.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=75
                end=150
                image="units/monsters/cockatrice-attack10.png"
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=75
                end=150
                image="units/monsters/cockatrice-attack10.png"
                sound=petrified.ogg
            [/frame]
        [/else]
        [frame]
            begin=150
            end=225
            image="units/monsters/cockatrice-attack11.png"
        [/frame]
        [frame]
            begin=225
            end=300
            image="units/monsters/cockatrice-attack12.png"
        [/frame]
        [frame]
            begin=300
            end=375
            image="units/monsters/cockatrice-attack13.png"
        [/frame]
        [frame]
            begin=450
            end=525
            image="units/monsters/cockatrice-attack04.png"
        [/frame]
        [frame]
            begin=525
            end=600
            image="units/monsters/cockatrice-attack03.png"
        [/frame]
        [frame]
            begin=600
            end=675
            image="units/monsters/cockatrice-attack02.png"
        [/frame]
        [frame]
            begin=675
            end=750
            image="units/monsters/cockatrice-attack01.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown
# Eyestalk by zookeeper, from 1.3.8+SVN wesnoth-TSG

[unit_type]
    id=Eyestalk
    name= _ "Eyestalk"
    race=monster
    image="units/monsters/eyestalk.png"
    hitpoints=68
    movement_type=smallfoot
    [movement_costs]
        deep_water={UNREACHABLE}
        shallow_water={UNREACHABLE}
        reef={UNREACHABLE}
        swamp_water={UNREACHABLE}
        flat={UNREACHABLE}
        sand={UNREACHABLE}
        forest={UNREACHABLE}
        hills={UNREACHABLE}
        mountains={UNREACHABLE}
        village={UNREACHABLE}
        castle={UNREACHABLE}
        cave={UNREACHABLE}
        frozen={UNREACHABLE}
        unwalkable={UNREACHABLE}
        impassable={UNREACHABLE}
        fungus={UNREACHABLE}
    [/movement_costs]
    [resistance]
        blade=120
        pierce=90
        impact=90
        fire=120
        cold=100
        arcane=130
    [/resistance]
    movement=1
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=30
    usage=mixed fighter
    undead_variation=null
    description= _ "Named ‘Eyestalks’ for obvious reasons, these plant-like creatures can focus their gaze onto an unsuspecting victim to draw life energy straight out of them to replenish their own. While almost defenseless against melee attacks, its deadly gaze from afar is not to be underestimated."
    {DEFENSE_ANIM "units/monsters/eyestalk-attack-1.png" "units/monsters/eyestalk.png" wose-hit.ogg }
    [abilities]
        {ABILITY_REGENERATES}
    [/abilities]
    [attack]
        name=smash
        description= _ "smash"
        icon=attacks/crush-wose.png
        type=impact
        range=melee
        damage=8
        number=1
        attack_weight=0.0
    [/attack]
    [attack]
        name=gaze
        icon=attacks/gaze.png
        description= _ "gaze"
        type=arcane
        range=ranged
        damage=13
        number=3
        icon=attacks/gaze.png
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            range=melee
        [/filter_attack]
        start_time=-300
        [frame]
            duration=50
            image=units/monsters/eyestalk.png
        [/frame]
        [if]
            hits=no
            [frame]
                duration=100
                image=units/monsters/eyestalk-attack-1.png
            [/frame]
            [frame]
                duration=250
                image=units/monsters/eyestalk-attack-2.png
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=100
                image=units/monsters/eyestalk-attack-1.png
                sound=tail.ogg
            [/frame]
            [frame]
                duration=250
                image=units/monsters/eyestalk-attack-2.png
            [/frame]
        [/else]
        [frame]
            duration=150
            image=units/monsters/eyestalk-attack-1.png
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            range=ranged
        [/filter_attack]
        start_time=-200
        missile_start_time=0
        [missile_frame]
            duration=300
            halo="halo/elven/ice-halo1.png:50,halo/elven/ice-halo2.png:50,halo/elven/ice-halo3.png:50,halo/elven/ice-halo4.png:50,halo/elven/ice-halo5.png:50,halo/elven/ice-halo6.png:50"
            offset=1.0~0.0:300
        [/missile_frame]
        [frame]
            duration=50
            image=units/monsters/eyestalk.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/eyestalk-attack-1.png
            sound=hiss-die.wav
        [/frame]
        [frame]
            duration=250
            image=units/monsters/eyestalk-attack-2.png
        [/frame]
        [frame]
            duration=100
            image=units/monsters/eyestalk-attack-1.png
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Brain Drainer
    name= _ "Brain Drainer"
    race=monster
    image="units/monsters/leech-brain-drainer.png"
    hitpoints=52
    movement_type=mountainfoot
    movement=6
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=57
    usage=fighter
    [resistance]
        arcane=120
    [/resistance]
    undead_variation=null
    description= _ "Giant Leeches grow up after draining enough blood, becoming a extremely dangerous threat for any living creature. As they drain blood, they regenerate, healing their wounds and growing in size.

Since they have acquired the habit of attacking their prey’s head first, they have been named ‘brain-drainers’. This does not mean that they actually feed on their prey’s brain. They just crush its cranium with their powerful mouth in order to gain easy and fast access to the blood in the remaining body of the poor victim."
    # Note: ETERNALly thirsty ;)
    die_sound=hiss-die.wav
    {DEFENSE_ANIM "units/monsters/leech-brain-drainer.png" "units/monsters/leech-brain-drainer.png" hiss-hit.wav }
    [attack]
        icon=attacks/fangs.png
        name=drainer
        description= _"drainer"
        type=pierce
        range=melee
        damage=12
        number=3
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=drainer
        [/filter_attack]
        [frame]
            begin=-225
            end=-175
            image="units/monsters/leech-brain-drainer.png"
        [/frame]
        [frame]
            begin=-175
            end=-100
            image="units/monsters/leech-brain-drainer.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=-50
                image="units/monsters/leech-brain-drainer.png"
                sound=bite.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/monsters/leech-brain-drainer.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
            image="units/monsters/leech-brain-drainer.png"
        [/frame]
        [frame]
            begin=175
            end=200
            image="units/monsters/leech-brain-drainer.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Giant Leech
    name= _ "Giant Leech"
    race=monster
    image="units/monsters/leech-giant.png"
    hitpoints=39
    movement_type=mountainfoot
    movement=6
    experience=110
    level=2
    alignment=chaotic
    advances_to=Brain Drainer
    cost=31
    usage=fighter
    [resistance]
        arcane=120
    [/resistance]
    undead_variation=null
    description= _ "Leeches are well known for their habit of draining the blood out of bigger creatures. It is fortunate that they are smaller than a man’s thumb.

However, in certain places, deep underground, giant eyeless reptilians that behave as leeches have been spotted, thus leading people to call them ‘Giant Leeches’. It is not known what these beings actually are, or how they got to have this body structure and habits. Rumor has it that they are eternally thirsty for fresh blood."
    # Note: ETERNALly thirsty ;)
    die_sound=hiss-die.wav
    {DEFENSE_ANIM "units/monsters/leech-giant.png" "units/monsters/leech-giant.png" hiss-hit.wav }
    [attack]
        icon=attacks/fangs.png
        name=drainer
        description= _"drainer"
        type=pierce
        range=melee
        damage=9
        number=3
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=drainer
        [/filter_attack]
        [frame]
            begin=-225
            end=-175
            image="units/monsters/leech-giant.png"
        [/frame]
        [frame]
            begin=-175
            end=-100
            image="units/monsters/leech-giant.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=-50
                image="units/monsters/leech-giant.png"
                sound=bite-small.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/monsters/leech-giant.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
            image="units/monsters/leech-giant.png"
        [/frame]
        [frame]
            begin=175
            end=200
            image="units/monsters/leech-giant.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Mother Mudcrawler
    name= _ "Mother Mudcrawler"
    race=monster
    image="units/monsters/mother-mudcrawler.png"
    hitpoints=47
    movement_type=scuttlefoot
    movement=4
    experience=100
    level=2
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    [advancefrom]
        unit=Giant Mudcrawler
        experience=120
    [/advancefrom]
    cost=32
    die_sound=squishy-hit.wav
    undead_variation=null
    usage=archer
    description= _ "As mudcrawlers are nothing but magical constructs of soil and water, they can merge into a single bigger entity when it is necessary to defeat a tough foe. Obviously this represents great danger, as with the adequate number they can form a major mudcrawler big as a tree, more than enough to crush a brave mounted warrior with a single strike of their composite fist."
    {DEFENSE_ANIM "units/monsters/mother-mudcrawler.png" "units/monsters/mother-mudcrawler.png" squishy-hit.wav }
    [attack]
        name=fist
        description={I18N:ATTACK_FIST}
        icon=attacks/mud-glob.png
        type=impact
        range=melee
        damage=9
        number=2
    [/attack]
    [attack]
        name=mud glob
        description={TSTR_ATTACK_NAME_MUD_GLOB}
        icon=attacks/mud-glob.png
        type=impact
        range=ranged
        damage=8
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=mud glob
        [/filter_attack]
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/mud-glob.png"
            image_diagonal="projectiles/mud-glob.png"
        [/missile_frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/monsters/mother-mudcrawler.png"
                sound=squishy-strike.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/monsters/mother-mudcrawler.png"
                sound=squishy-miss.wav
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fist
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=-100
                image="units/monsters/mother-mudcrawler.png"
                sound=squishy-strike.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=-100
                image="units/monsters/mother-mudcrawler.png"
                sound=squishy-miss.wav
            [/frame]
        [/else]
        [frame]
            begin=-100
            end=100
            image="units/monsters/mother-mudcrawler.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/monsters/mother-mudcrawler.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Crow
    name= _ "Crow"
    race=monster
    image="units/monsters/crow.png"
    hitpoints=21
    movement_type=fly
    movement=7
    experience=25
    level=0
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=10
    usage=scout
    undead_variation=null
    description= _ "Crows are carrion birds which will eat anything dead. Larger ones such as this have been also known to feed upon living preys when food is scarce."
    die_sound={SOUND_LIST:GRYPHON_DIE}
    {FLYING_DEFENSE_ANIM "units/monsters/crow.png" "units/monsters/crow.png" {SOUND_LIST:GRYPHON_HIT} }
    [attack]
        name=beak
        description= _ "beak"
        type=blade
        range=melee
        damage=6
        number=2
        [specials]
            {WEAPON_SPECIAL_CHARGE}
        [/specials]
    [/attack]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        type=blade
        range=melee
        damage=5
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=beak
        [/filter_attack]
        start_time=-100
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/monsters/crow-attack.png"
                sound=crow.wav
            [/frame]
            [frame]
                duration=100
                image="units/monsters/crow-attack.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=200
                image="units/monsters/crow-attack.png"
                sound=crow.wav
            [/frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-100
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/monsters/crow-attack.png"
                sound=crow.wav
            [/frame]
            [frame]
                duration=100
                image="units/monsters/crow-attack.png"
                sound=claws.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=200
                image="units/monsters/crow-attack.png"
                sound=crow.wav
            [/frame]
        [/else]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Rabbit
    name= _ "Rabbit"
    race=monster
    image="units/monsters/rabbit.png"
    hitpoints=17
    movement_type=woodland
    {NPC_MAY_NOT_ENTER_VILLAGES}
    movement=6
    experience=25
    {AMLA_DEFAULT}
    level=0
    alignment=neutral
    advances_to=null
    cost=6
    usage=fighter
    undead_variation=null
    description= _ "It is easy for people who have never lived in the countryside to underestimate the menace that these small and innocent-looking creatures pose to civilization. Their staggeringly high breeding rate and powerful incisors allow them to make short work of any plantation in a matter of days, depriving hard-working farmers from their only source of income and wreaking havoc on a kingdom’s economy. Luckily for most, the rabbit population is usually kept under control by their many predators, including humans who have realized their culinary applications."
    die_sound=hiss-die.wav
    {DEFENSE_ANIM "units/monsters/rabbit-defend.png" "units/monsters/rabbit.png" {SOUND_LIST:BAT_HIT} }
    [attack]
        name=incisors
        description= _ "incisors"
        icon=attacks/fangs-rodent.png
        type=pierce
        range=melee
        damage=4
        number=2
    [/attack]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        icon=attacks/claws-animal.png
        type=blade
        range=melee
        damage=2
        number=2
    [/attack]
    [attack_anim]
        [filter_attack]
            range=melee
        [/filter_attack]
        start_time=-350
        [frame]
            image="units/monsters/rabbit-attack[1~3].png:[150,200,150]"
        [/frame]
    [/attack_anim]

    [variation]
        variation_id=white
        inherit=yes
        hide_help=yes
        image="units/monsters/rabbit+white.png"
        {DEFENSE_ANIM "units/monsters/rabbit+white-defend.png" "units/monsters/rabbit+white.png" {SOUND_LIST:BAT_HIT} }
        [attack_anim]
            [filter_attack]
                range=melee
            [/filter_attack]
            [frame]
                image="units/monsters/rabbit+white-attack[1~3].png:[150,200,150]"
            [/frame]
        [/attack_anim]
    [/variation]

    [variation]
        variation_id=caramel
        inherit=yes
        hide_help=yes
        image="units/monsters/rabbit+caramel.png"
        {DEFENSE_ANIM "units/monsters/rabbit+caramel-defend.png" "units/monsters/rabbit+caramel.png" {SOUND_LIST:BAT_HIT} }
        [attack_anim]
            [filter_attack]
                range=melee
            [/filter_attack]
            [frame]
                image="units/monsters/rabbit+caramel-attack[1~3].png:[150,200,150]"
            [/frame]
        [/attack_anim]
    [/variation]

    [variation]
        variation_id=grey
        inherit=yes
        hide_help=yes
        image="units/monsters/rabbit+grey.png"
        {DEFENSE_ANIM "units/monsters/rabbit+grey-defend.png" "units/monsters/rabbit+grey.png" {SOUND_LIST:BAT_HIT} }
        [attack_anim]
            [filter_attack]
                range=melee
            [/filter_attack]
            [frame]
                image="units/monsters/rabbit+grey-attack[1~3].png:[150,200,150]"
            [/frame]
        [/attack_anim]
    [/variation]
[/unit_type]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Invasion_from_the_Unknown
# Easter egg unit
[unit_type]
    id=Tux
    name= _ "Tux the Penguin"
    race=monster
    image="units/monsters/tux.png"
    hitpoints=64
    movement_type=smallfoot
    movement=8
    experience=250
    advances_to=null
    {AMLA_DEFAULT}
    level=5
    alignment=neutral
    cost=1024
    usage=fighter
    hide_help=yes
    undead_variation=null
    description= _ "Nobody knows where the Tux came from. Rumor has it that it’s the avatar of the destruction wind in this world."
    [attack]
        name=kernel panic
        description= _ "kernel panic"
        type=impact
        range=melee
        damage=16
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=kernel panic
        [/filter_attack]
        start_time=-200
        [frame]
            duration,image="350","units/monsters/tux.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Master of Darkness
    name= _ "Master of Darkness"
    race=shaxthal
    image="units/shaxthal/master-drone.png"
    halo="halo/obscures-aura.png"
    profile="portraits/shadow-master+masked.png"
    hitpoints=208
    movement_type=biomechanical_elusivefoot
    movement=5
    experience=300
    level=6
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    [resistance]
        blade=80
        pierce=70
        impact=70
        fire=90
        cold=90
        arcane=110
    [/resistance]
    cost=900
    usage=mixed fighter
    # Exclude from units.w.o, not from the help browser.
    do_not_list=yes
    description= _ "Argan’s unfaltering faith in the Mother of Inferno has turned him into a messianic figure revered by the Chaos Empire’s subjects, an antithesis to the Master of Darkness of old. His grotesque new body is anything but an impediment to his fabled mastery of the essence of Darkness. Feared by allies and foes alike, he rules Uria’s sacred domain on Irdya with an iron fist, and delivers her command directly to the Chaos Warlord and the Iron Triad. And to those foolish few who may disobey his authority, the bleakest of fates awaits — to be stripped of their will and turned into mindless biomechanical creatures bound to serve their master unquestioningly for the rest of their lives.

Needless to say, absolutely no creature born from Irdya has ever confronted this man in battle and survived to tell the tale."
    die_sound=lich-die.ogg
    {DEFENSE_ANIM "units/shaxthal/master-drone.png" "units/shaxthal/master-drone.png" {SOUND_LIST:LICH_HIT} }
    [abilities]
        {ABILITY_OBSCURE}
        {ABILITY_SUBMERGE}
    [/abilities]
    [attack]
        name=soul ripper
        description= _ "soul ripper"
        icon=attacks/touch-undead.png
        type=arcane
        range=melee
        damage=6
        number=4
        [specials]
            {WEAPON_SPECIAL_PLAGUE_TYPE (Shadow Minion)}
        [/specials]
    [/attack]
    [attack]
        name=infernal chill
        description= _ "infernal chill"
        type=cold
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=11
        number=3
        icon=attacks/iceball.png
    [/attack]
    [attack]
        name=noctum
        description= _ "noctum"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=12
        number=5
    [/attack]

    [attack_anim]
        [filter_attack]
            name=soul ripper
        [/filter_attack]
        start_time=-200
        [frame]
            duration=50
            image="units/shaxthal/master-drone.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=250
                image="units/shaxthal/master-drone.png"
                sound=wail-sml.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=250
                image="units/shaxthal/master-drone.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/shaxthal/master-drone.png"
        [/frame]
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=noctum
        [/filter_attack]
        start_time=-400
        {MISSILE_FRAME_DARKNESS_BEAM}
        [frame]
            duration=180
            image="units/shaxthal/master-drone.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=180
                image="units/shaxthal/master-drone.png"
                sound=magic-dark-big.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=180
                image="units/shaxthal/master-drone.png"
                sound=magic-dark-big-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=140
            image="units/shaxthal/master-drone.png"
        [/frame]
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=infernal chill
        [/filter_attack]
        start_time=-300
        {MISSILE_FRAME_INFERNAL_CHILL}
        [frame]
            duration=50
            image="units/shaxthal/master-drone.png"
            halo=halo/saurian-magic-halo-1.png
        [/frame]
        [frame]
            duration=60
            image="units/shaxthal/master-drone.png"
            halo=halo/saurian-magic-halo-2.png
            sound=magicmissile.wav
        [/frame]
        [frame]
            duration=70
            image="units/shaxthal/master-drone.png"
            halo=halo/saurian-magic-halo-3.png
        [/frame]
        [frame]
            duration=80
            image="units/shaxthal/master-drone.png"
            halo=halo/saurian-magic-halo-4.png
        [/frame]
        [frame]
            duration=90
            image="units/shaxthal/master-drone.png"
            halo=halo/saurian-magic-halo-5.png
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/master-drone.png"
            halo=halo/saurian-magic-halo-6.png
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/master-drone.png"
            halo=halo/saurian-magic-halo-7.png
        [/frame]
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=union
        [/filter_attack]

        [if]
            hits=yes

            {UNION_FOG}

            {UNION_BEAM_DARK}

            sound1_start_time=-450
            [sound1_frame]
                sound={SOUND_LIST:HOLY}
            [/sound1_frame]

            sound2_start_time=-400
            [sound2_frame]
                sound={SOUND_LIST:UNION_HIT}
            [/sound2_frame]
        [/if]

        start_time=-650
        offset=0.0
        blend_color=16,0,32
        blend_ratio=0.0~0.6:500,0.6~0.0:200

        [frame]
            image="units/shaxthal/master-drone.png"
        [/frame]

        {SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-dark-miss.ogg -350}
    [/attack_anim]

    [variation]
        variation_id=unknown_unit_type_label
        inherit=yes
        hide_help=yes
        name=" " # wmllint: ignore
    [/variation]

    [variation]
        variation_id=unmasked
        inherit=yes
        hide_help=yes
        image="units/shaxthal/master-drone+unmasked.png"
        profile="portraits/shadow-master.png"
        {DEFENSE_ANIM "units/shaxthal/master-drone+unmasked.png" "units/shaxthal/master-drone+unmasked.png" {SOUND_LIST:LICH_HIT} }
        [attack_anim]
            [filter_attack]
                name=soul ripper
            [/filter_attack]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/master-drone+unmasked.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/master-drone+unmasked.png"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=noctum
            [/filter_attack]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/master-drone+unmasked.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/master-drone+unmasked.png"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=infernal chill
            [/filter_attack]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+unmasked.png"
            [/frame]
        [/attack_anim]
    [/variation]

    [variation]
        variation_id=bloated
        inherit=yes
        hide_help=yes
        image="units/shaxthal/master-drone+bloated.png"
        profile="misc/blank-hex.png" # Intentional, don't change.
        {DEFENSE_ANIM "units/shaxthal/master-drone+bloated.png" "units/shaxthal/master-drone+bloated.png" {SOUND_LIST:LICH_HIT} }
        [attack_anim]
            [filter_attack]
                name=soul ripper
            [/filter_attack]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/master-drone+bloated.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/master-drone+bloated.png"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=noctum
            [/filter_attack]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/master-drone+bloated.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/master-drone+bloated.png"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=infernal chill
            [/filter_attack]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
            [frame]
                image="units/shaxthal/master-drone+bloated.png"
            [/frame]
        [/attack_anim]
    [/variation]
[/unit_type]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Chaos Warlord
    # po: Keep the unit type name gender ambiguous if your language allows it.
    name= _ "female^Chaos Warlord"
    race=shaxthal
    gender=female
    image="units/shaxthal/warlord+withmask.png"
    profile="portraits/elyssa+masked.png"
    hitpoints=196
    movement_type=biomechanical_elusivefoot
    movement=5
    experience=250
    level=5
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=280
    usage=mixed fighter
    [resistance]
        blade=80
        impact=70
        arcane=100
        fire=70
    [/resistance]
    [abilities]
        {ABILITY_SUBMERGE}
        {ABILITY_REGENERATES}
        {ABILITY_LEADERSHIP}
    [/abilities]
    # Exclude from units.w.o, not from the help browser.
    do_not_list=yes
    # po: Keep gender ambiguous if your language allows, since this text is
    # po: available before the Warlord’s gender is formally revealed.
    description= _ "Not since the fall of Mal-Ravanal had Irdya seen an entity able to seize the entirety of the Great Continent by force — until, that is, the rise of the Chaos Empire. It is said the humble man who founded it would not have compared to the legendary lich in power or stature, but the Mother of Inferno herself lent him her guidance and blessing. In time, the Empire’s reach would extend far beyond even Ravanal’s petty conquest, its leaders far more powerful than the Founder could ever have hoped to be.

Today the Chaos Lorekeepers function at the behest of the Empire’s main governing body, the Iron Council. In turn, the Council answers to the Chaos Emperor, though for the most part it is his second, the Chaos Warlord, who figures prominently in the Empire’s politics and decision-making.

Beyond being a key figure of authority, the Chaos Warlord occasionally takes active part in the Empire’s military campaigns, commanding its forces wherever Uria’s plans require surgical precision and absolute efficacy. It is rumored that, despite centuries of continual assaults, the Warlord has to yet fall short of an objective. If so, this creature is personally responsible for the deaths of countless millions over the years. That even the most hardened of demon warriors quake with fear at the prospect of attracting the Warlord’s attentions should be cautionary hint enough for anyone foolish enough to ponder blocking the Warlord’s way."
    die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
    {DEFENSE_ANIM "units/shaxthal/warlord+withmask.png" "units/shaxthal/warlord+withmask.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
    [attack]
        name=sword
        description={I18N:ATTACK_SWORD}
        type=blade
        range=melee
        damage=11
        number=4
        icon=attacks/scimitar.png
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack]
        name=ethereal blast
        description= _ "ethereal blast"
        type=arcane
        range=ranged
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=9
        number=5
        icon=attacks/missile-chaos.png
    [/attack]
    [attack]
        name=burning inferno
        description= _ "burning inferno"
        type=fire
        range=ranged
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=14
        number=3
        icon=attacks/fireball.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        [frame]
            begin=-225
            end=-175
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
        [frame]
            begin=-175
            end=-100
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/shaxthal/warlord+withmask.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/shaxthal/warlord+withmask.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
        [frame]
            begin=175
            end=200
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=ethereal blast
        [/filter_attack]
        [missile_frame]
            begin=-200
            end=50
            image="projectiles/chaosmissile-n.png"
            image_diagonal="projectiles/chaosmissile-ne.png"
            halo=halo/chaos-halo1.png:25,halo/chaos-halo2.png:25,halo/chaos-halo3.png:25,halo/chaos-halo4.png:25,halo/chaos-halo5.png:25,halo/chaos-halo6.png:25,halo/chaos-halo7.png:25,halo/chaos-halo8.png:25,halo/chaos-halo9.png:50
            halo_x,halo_y=10,-2
        [/missile_frame]
        [frame]
            begin=-300
            end=-200
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-200
                end=100
                image="units/shaxthal/warlord+withmask.png"
                sound=magic-missile-1.ogg,magic-missile-2.ogg,magic-missile-3.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-200
                end=100
                image="units/shaxthal/warlord+withmask.png"
                sound=magic-missile-1-miss.ogg,magic-missile-2-miss.ogg,magic-missile-3-miss.ogg
            [/frame]
        [/else]
    [/attack_anim]
    #
    # Code from Troll Shaman's (1.5.10) attack anim.
    #
    [attack_anim]
        [filter_attack]
            name=burning inferno
        [/filter_attack]

        start_time=-400
        offset=0.0

        flame_burst_1_start_time=-400
        flame_burst_2_start_time=-350
        flame_burst_3_start_time=-300
        flame_burst_4_start_time=-250
        flame_burst_5_start_time=-200

        [if]
            direction=se,s,sw

            [flame_burst_1_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png~FL(vert):50,halo/flame-burst-2.png~FL(vert):50,halo/flame-burst-3.png~FL(vert):50,halo/flame-burst-4.png~FL(vert):50,halo/flame-burst-5.png~FL(vert):50,halo/flame-burst-6.png~FL(vert):50,halo/flame-burst-7.png~FL(vert):50,halo/flame-burst-8.png~FL(vert):48,misc/blank-hex.png:1"
                halo_x,halo_y=-22,0
                offset=1.0
            [/flame_burst_1_frame]
            [flame_burst_2_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png~FL(vert):50,halo/flame-burst-2.png~FL(vert):50,halo/flame-burst-3.png~FL(vert):50,halo/flame-burst-4.png~FL(vert):50,halo/flame-burst-5.png~FL(vert):50,halo/flame-burst-6.png~FL(vert):50,halo/flame-burst-7.png~FL(vert):50,halo/flame-burst-8.png~FL(vert):48,misc/blank-hex.png:1"
                halo_x,halo_y=-14,9
                offset=1.0
            [/flame_burst_2_frame]
            [flame_burst_3_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png~FL(vert):50,halo/flame-burst-2.png~FL(vert):50,halo/flame-burst-3.png~FL(vert):50,halo/flame-burst-4.png~FL(vert):50,halo/flame-burst-5.png~FL(vert):50,halo/flame-burst-6.png~FL(vert):50,halo/flame-burst-7.png~FL(vert):50,halo/flame-burst-8.png~FL(vert):48,misc/blank-hex.png:1"
                halo_x,halo_y=0,12
                offset=1.0
            [/flame_burst_3_frame]
            [flame_burst_4_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png~FL(vert):50,halo/flame-burst-2.png~FL(vert):50,halo/flame-burst-3.png~FL(vert):50,halo/flame-burst-4.png~FL(vert):50,halo/flame-burst-5.png~FL(vert):50,halo/flame-burst-6.png~FL(vert):50,halo/flame-burst-7.png~FL(vert):50,halo/flame-burst-8.png~FL(vert):48,misc/blank-hex.png:1"
                halo_x,halo_y=14,9
                offset=1.0
            [/flame_burst_4_frame]
            [flame_burst_5_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png~FL(vert):50,halo/flame-burst-2.png~FL(vert):50,halo/flame-burst-3.png~FL(vert):50,halo/flame-burst-4.png~FL(vert):50,halo/flame-burst-5.png~FL(vert):50,halo/flame-burst-6.png~FL(vert):50,halo/flame-burst-7.png~FL(vert):50,halo/flame-burst-8.png~FL(vert):48,misc/blank-hex.png:1"
                halo_x,halo_y=22,0
                offset=1.0
            [/flame_burst_5_frame]
        [/if]
        [else]
            direction=ne,n,nw

            [flame_burst_1_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png:50,halo/flame-burst-2.png:50,halo/flame-burst-3.png:50,halo/flame-burst-4.png:50,halo/flame-burst-5.png:50,halo/flame-burst-6.png:50,halo/flame-burst-7.png:50,halo/flame-burst-8.png:48,misc/blank-hex.png:1"
                halo_x,halo_y=-22,0
                offset=1.0
            [/flame_burst_1_frame]
            [flame_burst_2_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png:50,halo/flame-burst-2.png:50,halo/flame-burst-3.png:50,halo/flame-burst-4.png:50,halo/flame-burst-5.png:50,halo/flame-burst-6.png:50,halo/flame-burst-7.png:50,halo/flame-burst-8.png:48,misc/blank-hex.png:1"
                halo_x,halo_y=-14,9
                offset=1.0
            [/flame_burst_2_frame]
            [flame_burst_3_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png:50,halo/flame-burst-2.png:50,halo/flame-burst-3.png:50,halo/flame-burst-4.png:50,halo/flame-burst-5.png:50,halo/flame-burst-6.png:50,halo/flame-burst-7.png:50,halo/flame-burst-8.png:48,misc/blank-hex.png:1"
                halo_x,halo_y=0,12
                offset=1.0
            [/flame_burst_3_frame]
            [flame_burst_4_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png:50,halo/flame-burst-2.png:50,halo/flame-burst-3.png:50,halo/flame-burst-4.png:50,halo/flame-burst-5.png:50,halo/flame-burst-6.png:50,halo/flame-burst-7.png:50,halo/flame-burst-8.png:48,misc/blank-hex.png:1"
                halo_x,halo_y=14,9
                offset=1.0
            [/flame_burst_4_frame]
            [flame_burst_5_frame]
                duration=400
                halo="misc/blank-hex.png:1,halo/flame-burst-1.png:50,halo/flame-burst-2.png:50,halo/flame-burst-3.png:50,halo/flame-burst-4.png:50,halo/flame-burst-5.png:50,halo/flame-burst-6.png:50,halo/flame-burst-7.png:50,halo/flame-burst-8.png:48,misc/blank-hex.png:1"
                halo_x,halo_y=22,0
                offset=1.0
            [/flame_burst_5_frame]
        [/else]

        [frame]
            sound=fire.wav
            duration=100
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
        [frame]
            duration=200
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
        [frame]
            duration=100
            image="units/shaxthal/warlord+withmask.png"
        [/frame]
    [/attack_anim]

    [variation]
        variation_id=unmasked
        inherit=yes
        hide_help=yes
        image="units/shaxthal/warlord.png"
        profile="portraits/elyssa.png"
        # po: You can use her correct gender for this version of her description.
        description= _ "Nobody knows for sure what path led her to become what she is now: a creature neither human nor machine. The Chaos Warlord’s human visage and emaciated body belie the fearsome strength and sharpness of mind she has displayed in battle over the centuries. To Uria’s servants — humans or otherwise — her unnatural abilities and great power have earned her a reputation as a demoness, along with the fear and respect normally reserved for a demon lord.

The fate of anyone facing her in combat is already set, and the most they can hope for is a swift and painless death."
        {DEFENSE_ANIM "units/shaxthal/warlord.png" "units/shaxthal/warlord.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
        [attack_anim]
            [filter_attack]
                name=sword
            [/filter_attack]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/warlord.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/warlord.png"
                [/frame]
            [/else]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=ethereal blast
            [/filter_attack]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
            [if]
                [frame]
                    image="units/shaxthal/warlord.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/shaxthal/warlord.png"
                [/frame]
            [/else]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=burning inferno
            [/filter_attack]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
            [frame]
                image="units/shaxthal/warlord.png"
            [/frame]
        [/attack_anim]
    [/variation]
[/unit_type]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Dead Shadow Master
    name= _ "Master of Darkness"
    race=shaxthal
    image="misc/blank-hex.png"
    profile="misc/blank-hex.png" # Intentional, don't change.
    ellipse=none
    hitpoints=315
    movement_type=none
    movement=6
    experience=300
    {AMLA_DEFAULT}
    level=6
    alignment=chaotic
    advances_to=null
    cost=900
    usage=null
    hide_help=true
    description="" # wmllint: ignore
[/unit_type]

# kate: indent-mode normal; encoding utf-8; space-indent on;


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Elvish Ancestor
    name= _ "Ancestor"
    race=elvish_spirits
    image="units/undead/elvish-ancestor.png"
    hitpoints=25
    movement_type=undeadspirit
    [defense]
        forest=40
    [/defense]
    [resistance]
        arcane=120
    [/resistance]
    {TRAIT_FEARLESS_MUSTHAVE}
    movement=7
    experience=90
    level=2
    alignment=chaotic
    advances_to=Elvish Forefather
    [abilities]
        {ABILITY_TERROR}
        {ABILITY_SYLVAN_SPARK}
    [/abilities]
    cost=44
    usage=mixed fighter
    description= _ "Revered warriors of old roam through the elven forests, visible only by the light of their shining silver blades, their wounds having closed as if they had never existed. Though they are only partially present in the mortal realm, their voices can whisper words in the wind that chill the hearts of their enemies, words that show the true meaning of fear."
    die_sound=wail-long.wav
    [attack]
        name=ancient blade
        description= _ "ancient blade"
        icon=attacks/astral-blade.png
        type=arcane
        range=melee
        damage=5
        number=4
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack]
        name=requiem
        description= _ "requiem"
        icon=attacks/wail.png
        type=cold
        range=ranged
        damage=3
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=ancient blade
        [/filter_attack]
        start_time=-500
        offset=0.0~1.0:425,0.0:225
        alpha=0.8~0.0:425,0.0~0.8:225
        [frame]
            duration=200
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=200
            image="units/undead/elvish-ancestor.png"
            sound=wail-sml.wav
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/undead/elvish-ancestor.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/undead/elvish-ancestor.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/undead/elvish-ancestor.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=requiem
        [/filter_attack]
        {MISSILE_FRAME_WAIL}
        [if]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/undead/elvish-ancestor.png"
                sound=wail-sml.wav
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/undead/elvish-ancestor.png"
                sound=wail.wav
            [/frame]
        [/else]
    [/attack_anim]
    [defend]
        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/elvish-ancestor.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/elvish-ancestor.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/elvish-ancestor.png"
                sound=wail.wav
            [/frame]
            [frame]
                duration=1
                image="units/undead/elvish-ancestor.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/elvish-ancestor.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/elvish-ancestor.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/elvish-ancestor.png"
            [/frame]
            [frame]
                duration=1
                image="units/undead/elvish-ancestor.png"
            [/frame]
        [/else]
    [/defend]
    [standing_anim]
        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/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-ancestor.png"
        [/frame]
    [/standing_anim]
    [leading_anim]
        start_time=0
        [frame]
            duration=0
            image="units/undead/elvish-ancestor.png"
        [/frame]
    [/leading_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Elvish Forefather
    name= _ "Forefather"
    race=elvish_spirits
    image="units/undead/elvish-forefather.png"
    hitpoints=35
    movement_type=undeadspirit
    [defense]
        forest=40
    [/defense]
    [resistance]
        arcane=120
    [/resistance]
    {TRAIT_FEARLESS_MUSTHAVE}
    movement=7
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    [abilities]
        {ABILITY_TERROR}
        {ABILITY_SYLVAN_SPARK}
    [/abilities]
    cost=74
    usage=mixed fighter
    description= _ "The ancient elvish lords may come back to this world in times of great need, to lead their people to glory once again. When attacking, they sing a chilling chant of death, one which can paralyze their opponents with shear fear. This has been known to have changed the course of many a battle in favor of the elven forces, even when defeat was so close at hand."
    die_sound=wail-long.wav
    [attack]
        name=ancient blade
        description= _ "ancient blade"
        icon=attacks/astral-blade.png
        type=arcane
        range=melee
        damage=6
        number=5
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack]
        name=requiem
        description= _ "requiem"
        icon=attacks/wail.png
        type=cold
        range=ranged
        damage=5
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=ancient blade
        [/filter_attack]
        start_time=-500
        offset=0.0~1.0:425,0.0:225
        alpha=0.8~0.0:425,0.0~0.8:225
        [frame]
            duration=200
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=200
            image="units/undead/elvish-forefather.png"
            sound=wail-sml.wav
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/undead/elvish-forefather.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/undead/elvish-forefather.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/undead/elvish-forefather.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=requiem
        [/filter_attack]
        {MISSILE_FRAME_WAIL}
        [if]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/undead/elvish-forefather.png"
                sound=wail-sml.wav
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/undead/elvish-forefather.png"
                sound=wail.wav
            [/frame]
        [/else]
    [/attack_anim]
    [defend]
        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/elvish-forefather.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/elvish-forefather.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/elvish-forefather.png"
                sound=wail.wav
            [/frame]
            [frame]
                duration=1
                image="units/undead/elvish-forefather.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/elvish-forefather.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/elvish-forefather.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/elvish-forefather.png"
            [/frame]
            [frame]
                duration=1
                image="units/undead/elvish-forefather.png"
            [/frame]
        [/else]
    [/defend]
    [standing_anim]
        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/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-forefather.png"
        [/frame]
    [/standing_anim]
    [leading_anim]
        start_time=0
        [frame]
            duration=0
            image="units/undead/elvish-forefather.png"
        [/frame]
    [/leading_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Elvish Warrior Spirit
    name= _ "Warrior Spirit"
    race=elvish_spirits
    image="units/undead/elvish-warrior-spirit.png"
    hitpoints=16
    movement_type=undeadspirit
    [defense]
        forest=40
    [/defense]
    [resistance]
        arcane=120
    [/resistance]
    {TRAIT_FEARLESS_MUSTHAVE}
    movement=7
    experience=45
    level=1
    alignment=chaotic
    advances_to=Elvish Ancestor
    [abilities]
        {ABILITY_TERROR}
        {ABILITY_SYLVAN_SPARK}
    [/abilities]
    cost=23
    usage=scout
    description= _ "The greatest elvish warriors of times past are not completely gone, for they consider even death no obstacle to them. They will roam the forests which formerly served as their homes, wandering through both their memories and the mortal plane of which they inhabit. Their recollections of glorious battles and wars, conquests and defeats, cause them to eternally seek a chance to perform those same feats once again. Indeed, this is not difficult, for they can strike the utmost terror into their foes, sometimes even causing death."
    die_sound=wail-long.wav
    [attack]
        name=ancient blade
        description= _ "ancient blade"
        icon=attacks/astral-blade.png
        type=arcane
        range=melee
        damage=3
        number=4
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=ancient blade
        [/filter_attack]
        start_time=-500
        offset=0.0~1.0:425,0.0:225
        alpha=0.8~0.0:425,0.0~0.8:225
        [frame]
            duration=200
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=200
            image="units/undead/elvish-warrior-spirit.png"
            sound=wail-sml.wav
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/undead/elvish-warrior-spirit.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/undead/elvish-warrior-spirit.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
    [/attack_anim]
    [defend]
        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/elvish-warrior-spirit.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/elvish-warrior-spirit.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/elvish-warrior-spirit.png"
                sound=wail-sml.wav
            [/frame]
            [frame]
                duration=1
                image="units/undead/elvish-warrior-spirit.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/elvish-warrior-spirit.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/elvish-warrior-spirit.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/elvish-warrior-spirit.png"
            [/frame]
            [frame]
                duration=1
                image="units/undead/elvish-warrior-spirit.png"
            [/frame]
        [/else]
    [/defend]
    [standing_anim]
        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/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
        [frame]
            duration=250
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
    [/standing_anim]
    [leading_anim]
        start_time=0
        [frame]
            duration=0
            image="units/undead/elvish-warrior-spirit.png"
        [/frame]
    [/leading_anim]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Shadow Minion
    name= _ "Shadow Minion"
    race=undead
    image="units/undead/shadow-minion.png"
    [standing_anim]
        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=4000
            image="units/undead/shadow-minion.png"
        [/frame]
    [/standing_anim]
    hitpoints=17
    movement_type=undeadspirit
    movement=7
    experience=50
    level=1
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=20
    usage=scout
    [abilities]
        {ABILITY_NIGHTSTALK}
        {ABILITY_SKIRMISHER}
    [/abilities]
    description= _ "These spawns of the night are not to be taken lightly. Although weak beneath the suns’ light, they prove remarkably dangerous under the protection of the darkness, being able to move unseen and strike when least extected."
    die_sound=wail-long.wav
    [death]
        start_time=0
        [frame]
            duration=100
            image="units/fake/explosion-a-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/fake/explosion-a-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/fake/explosion-a-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/fake/explosion-a-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/fake/explosion-a-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/fake/explosion-a-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/fake/explosion-a-7.png"
        [/frame]
        [frame]
            duration=100
            image="units/fake/explosion-a-8.png"
        [/frame]
        [frame]
            duration=100
            image="units/fake/explosion-a-9.png"
        [/frame]
    [/death]
    [attack]
        name=claws
        description={I18N:ATTACK_CLAWS}
        type=blade
        icon=attacks/claws-undead.png
        range=melee
        damage=6
        number=3
        [specials]
            {WEAPON_SPECIAL_BACKSTAB}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-500
        offset=0.0~1.0:425,0.0:225
        alpha=0.8~0.0:425,0.0~0.8:225
        [frame]
            duration=50
            image="units/undead/shadow-minion-defend.png"
        [/frame]
        [frame]
            duration=350
            image="units/undead/shadow-minion-attack.png"
            sound=wail-sml.wav
        [/frame]
        [if]
            hits=no
            [frame]
                duration=100
                image="units/undead/shadow-minion-attack.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=100
                image="units/undead/shadow-minion-attack.png"
                sound=claws.ogg
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/undead/shadow-minion.png"
        [/frame]
    [/attack_anim]
    [defend]
        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-minion.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/shadow-minion-defend.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/shadow-minion-defend.png"
                sound=wail-sml.wav
            [/frame]
            [frame]
                duration=1
                image="units/undead/shadow-minion.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-minion.png"
            [/frame]
            [frame]
                duration=100
                image="units/undead/shadow-minion-defend.png"
            [/frame]
            [frame]
                duration=150
                image="units/undead/shadow-minion-defend.png"
            [/frame]
            [frame]
                duration=1
                image="units/undead/shadow-minion.png"
            [/frame]
        [/else]
    [/defend]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Shadow Spawn
    name= _ "Shadow Spawn"
    race=undead
    image="units/undead/shadow-spawn.png"
    {TRAIT_FEARLESS_MUSTHAVE}
    hitpoints=26
    movement_type=gruefoot
    movement=4
    experience=50
    level=1
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=21
    usage=fighter
    description= _ "These creatures, known to those who encounter them as Shadow Spawns, are an embodiment of the darkest magical arts, and as such, only those highly adept in the arts of necromancy can create them. Like some undead, they possess the necromantic ability to raise the corpses of those they kill to the cruel world of unlife, and are willing to use this to full advantage."
    die_sound=wail-long.wav
    [resistance]
        blade=80
        pierce=80
        impact=80
        fire=120
        cold=50
        arcane=140
    [/resistance]
    [attack]
        name=touch
        description={I18N:ATTACK_TOUCH}
        icon=attacks/touch-zombie.png
        type=impact
        range=melee
        damage=7
        number=3
        [specials]
            {WEAPON_SPECIAL_PLAGUE}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/undead/shadow-spawn.png" "units/undead/shadow-spawn.png" wail.wav }
    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        start_time=-150
        [frame]
            duration=50
            image="units/undead/shadow-spawn.png"
        [/frame]
        [frame]
            duration=200
            image="units/undead/shadow-spawn.png"
            sound=wail-sml.wav
        [/frame]
    [/attack_anim]
    [death]
        start_time=0
        [frame]
            duration=50
            image="units/fake/explosion-a-1.png"
        [/frame]
        [frame]
            duration=50
            image="units/fake/explosion-a-2.png"
        [/frame]
        [frame]
            duration=50
            image="units/fake/explosion-a-3.png"
        [/frame]
        [frame]
            duration=50
            image="units/fake/explosion-a-4.png"
        [/frame]
        [frame]
            duration=50
            image="units/fake/explosion-a-5.png"
        [/frame]
        [frame]
            duration=50
            image="units/fake/explosion-a-6.png"
        [/frame]
        [frame]
            duration=50
            image="units/fake/explosion-a-7.png"
        [/frame]
        [frame]
            duration=50
            image="units/fake/explosion-a-8.png"
        [/frame]
        [frame]
            duration=50
            image="units/fake/explosion-a-9.png"
        [/frame]
    [/death]
[/unit_type]


#textdomain wesnoth-Invasion_from_the_Unknown

[unit_type]
    id=Bone Knight
    name= _ "Bone Knight"
    race=undead
    image="units/undead-skeletal/boneknight.png"
    #     [movement_anim]
    #         start_time=0
    #         [frame]
    #             duration=150
    #             image="units/undead-skeletal/boneknight-move.png"
    #         [/frame]
    #     [/movement_anim]
    hitpoints=48
    movement_type=undeadmountedfoot
    movement=8
    experience=100
    level=2
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=47
    usage=scout
    description= _ "Even after countless centuries buried beneath the sands, these warriors and their mighty steeds remain strong and fast, able to swifly dash into battle at their master’s command and lay waste to their enemies."
    die_sound=skeleton-big-die.ogg
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    #{DEFENSE_ANIM "units/undead-skeletal/boneknight-defend.png" "units/undead-skeletal/boneknight.png" {SOUND_LIST:SKELETON_BIG_HIT} }
    {DEFENSE_ANIM "units/undead-skeletal/boneknight.png" "units/undead-skeletal/boneknight.png" {SOUND_LIST:SKELETON_BIG_HIT} }
    [attack]
        name=axe
        description={I18N:ATTACK_AXE}
        type=blade
        range=melee
        damage=8
        number=4
        icon=attacks/axe-undead.png
    [/attack]
    [attack]
        name=trample
        icon=attacks/crush-wose.png
        description=_"trample"
        type=impact
        range=melee
        damage=7
        number=2
        [specials]
            {WEAPON_SPECIAL_CHARGE}
        [/specials]
    [/attack]
    [attack]
        name=crossbow
        description={I18N:ATTACK_CROSSBOW}
        icon=attacks/crossbow-undead.png
        type=pierce
        range=ranged
        damage=10
        number=1
    [/attack]
    [attack_anim]
        [filter_attack]
            name=axe
        [/filter_attack]
        start_time=-150
        [frame]
            duration=75
            image="units/undead-skeletal/boneknight.png"
            #image="units/undead-skeletal/boneknight-attack1.png"
        [/frame]
        [if]
            hits=no
            [frame]
                duration=150
                image="units/undead-skeletal/boneknight.png"
                #image="units/undead-skeletal/boneknight-attack2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                duration=150
                image="units/undead-skeletal/boneknight.png"
                #image="units/undead-skeletal/boneknight-attack2.png"
                sound=axe.ogg
            [/frame]
        [/else]
        [frame]
            duration=25
            image="units/undead-skeletal/boneknight.png"
            #image="units/undead-skeletal/boneknight-attack1.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=trample
        [/filter_attack]
        start_time=-250
        [frame]
            duration=100
            image="units/undead-skeletal/boneknight.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=125
                image="units/undead-skeletal/boneknight.png"
                #image="units/undead-skeletal/boneknight-defend.png"
                sound=fist.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=125
                image="units/undead-skeletal/boneknight.png"
                #image="units/undead-skeletal/boneknight-defend.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/undead-skeletal/boneknight.png"
            #image="units/undead-skeletal/boneknight-move.png"
        [/frame]
        [frame]
            duration=75
            image="units/undead-skeletal/boneknight.png"
            #image="units/undead-skeletal/boneknight-defend.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead-skeletal/boneknight.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=crossbow
        [/filter_attack]
        start_time=-400
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]
        [frame]
            duration=100
            image="units/undead-skeletal/boneknight.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=150
                image="units/undead-skeletal/boneknight.png"
                sound=crossbow.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=150
                image="units/undead-skeletal/boneknight.png"
                sound=crossbow-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=150
            image="units/undead-skeletal/boneknight.png"
        [/frame]
    [/attack_anim]
[/unit_type]