#textdomain wesnoth-After_the_Storm

#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
[unit_type]
    id=Guardian of Earth Aradellys
    name= _ "female^Guardian of Earth"
    race=faerie
    gender=female
    image="units/faeries/guardian-of-earth-aradellys.png"
    #profile="portraits/aradellys.png"
    # TODO: animations
    halo="halo/elynia-stationary-[1~6].png:150"
    hitpoints=442
    movement_type=elynia_lowfloat
    movement=6
    experience=400
    level=8
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=820
    usage=healer
    hide_help=true
    undead_variation=null
    # wmllint: notecheck off
    description= _ "There is no information available about this class of beings at this time."
    # We need a default silent death animation on E3S13.
    #die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [abilities]
        {ABILITY_ASPECT_OF_EARTH}
    [/abilities]
    [attack]
        name=faerie touch
        description={TSTR_ATTACK_NAME_FAERIE_TOUCH}
        icon=attacks/touch-faerie.png
        type=impact
        damage=12
        number=2
        range=melee
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=ensnare
        description={TSTR_ATTACK_NAME_ENSNARE}
        type=impact
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
        damage=11
        number=4
        range=ranged
        icon=attacks/entangle.png
    [/attack]
    [attack]
        name=faerieborn blaze
        description= _ "faerieborn blaze" # wmllint: no spellcheck
        icon=attacks/arcane-rage.png
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=18
        number=5
        range=ranged
    [/attack]

    {GUARDIAN_DEFENSE_ANIM 0 255 0 "units/faeries/guardian-of-earth-aradellys.png" "units/faeries/guardian-of-earth-aradellys.png" {SOUND_LIST:ELF_FEMALE_HIT} }

    [variation]
        inherit=yes
        variation_id=dying_1
        image="units/faeries/guardian-of-earth-aradellys-dying-1.png"
        zoc=no
        hitpoints=342
    [/variation]

    [variation]
        inherit=yes
        variation_id=dying_2
        image="units/faeries/guardian-of-earth-aradellys-dying-2.png"
        halo="misc/blank-hex.png"
        zoc=no
        hitpoints=42
    [/variation]

    [variation]
        inherit=yes
        variation_id=dying_3
        image="units/faeries/guardian-of-earth-aradellys-dying-3.png"
        halo="misc/blank-hex.png"
        ellipse=none # wmllint: no ellipsecheck
        hitpoints=12
    [/variation]

    [variation]
        inherit=yes
        variation_id=dying_4
        image="units/faeries/guardian-of-earth-aradellys-dying-4.png"
        halo="misc/blank-hex.png"
        ellipse=none # wmllint: no ellipsecheck
        hitpoints=1
    [/variation]
[/unit_type]
#endif

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Naiad
    name= _ "female^Naiad"
    race=faerie
    gender=female
    image="units/faeries/naiad.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    hitpoints=66
    {TRAIT_FEARLESS_MUSTHAVE}
    movement_type=woodlandfloat
    movement=6
    experience=200
    level=4
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=120
    usage=archer
    [abilities]
        {ABILITY_AQUEOUS}
        {ABILITY_SUBMERGE}
    [/abilities]

    description= _ "While faeries of the deep forest, hamadryads and oreads are best known for how little anyone knows about them, the elusive nature of the water faeries known as “naiads” manages to surpass them all by a large margin.

Even though they are known to share their natural habitat with other sapient river and sea creatures such as merfolk and naga, those have very little additional information to offer. It is thought that naiads possess some form of shapeshifting that enables them to blend into the water and remain undetected by all except those well versed in faerie magic.

The exceedingly few recorded instances of certain naiad encounters suggest that they are solitary nymphs that never make contact with anyone — even faeries — except as messengers of nature in times when the very existence of Irdya is at stake, and even then they leave as suddenly as they appear without ever taking sides in armed conflicts. With that said, some have suggested that they may occasionally take matters into their own hands by causing otherwise unexplained weather occurrences near bodies of water, especially in the open ocean."

    [movement_costs]
        deep_water=1
        cave=1
    [/movement_costs]
    [defense]
        deep_water=40 # higher than merfolk
        shallow_water=40
        swamp_water=40
        reef=30
        forest=50
    [/defense]
    [resistance]
        cold=80
    [/resistance]

    {DEFENSE_ANIM_RANGE units/faeries/naiad.png units/faeries/naiad.png {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE units/faeries/naiad.png units/faeries/naiad.png {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    die_sound=water-blast.wav

    [attack]
        name=naia touch
        description=_"naia touch"
        icon=attacks/touch-faerie.png
        type=impact
        range=melee
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
            {WEAPON_SPECIAL_SHOCK}
        [/specials]
        damage=16
        number=1
    [/attack]
    [attack]
        name=tidal wave
        description=_"tidal wave"
        icon=attacks/waterspray.png
        type=impact
        range=ranged
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
            {WEAPON_SPECIAL_SLOW}
        [/specials]
        damage=16
        number=3
    [/attack]

    [attack_anim]
        [filter_attack]
            name=naia touch
        [/filter_attack]
        start_time=-250

        [frame]
            image="units/faeries/naiad.png:280"
        [/frame]
        [frame]
            image="units/faeries/naiad.png"
            halo="halo/elven/druid-healing[1~8].png:75"
            halo_x,halo_y=10,14
        [/frame]

        {SOUND:HIT_AND_MISS fist.ogg {SOUND_LIST:MISS} -50}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=tidal wave
        [/filter_attack]
        start_time=-420

        missile_start_time=-165
        [missile_frame]
            duration=165
            image="projectiles/water-spray.png"
            image_diagonal="projectiles/water-spray.png"
        [/missile_frame]

        {MERMAID_WATER_BLAST_HALO}
        {MERMAID_STAFF_FLARE 0 0}

        [frame]
            image="units/faeries/naiad.png:200"
        [/frame]
        [frame]
            image="units/faeries/naiad.png:200"
            sound=water-blast.wav
        [/frame]
        [frame]
            image="units/faeries/naiad.png:120"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Faerie Avatar
    name= _ "female^Faerie Avatar"
    race=faerie
    gender=female
    image="units/faeries/ivyel.png"
    #profile="portraits/ivyel.png"
    halo="halo/elynia-stationary-[1~6].png:150"
    hitpoints=93
    movement_type=elynia_lowfloat
    movement=6
    experience=200
    level=4
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=190
    usage=healer
    hide_help=true
    description= _ "This faerie woman of unknown origins is bent on manipulating elvenkind to do Uria’s bidding by impersonating the true Lady of Light and instilling strife among her kind. Not much else is known about her at this time."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [abilities]
        {ABILITY_REGENERATES}
        {ABILITY_LEADERSHIP}
    [/abilities]
    [attack]
        name=arcane touch
        description= _ "arcane touch"
        icon=attacks/touch-faerie.png
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=6
        number=2
        range=melee
    [/attack]
    [attack]
        name=gossamer
        description={TSTR_ATTACK_NAME_GOSSAMER}
        type=impact
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
        damage=9
        number=3
        range=ranged
        icon="attacks/web.png"
    [/attack]
    [attack]
        name=ethereal storm
        description=_"ethereal storm"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=11
        number=4
        range=ranged
        icon=attacks/faerie-fire.png
    [/attack]

    {DEFENSE_ANIM_RANGE "units/faeries/ivyel.png" "units/faeries/ivyel.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/ivyel.png" "units/faeries/ivyel.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }

    [attack_anim]
        [filter_attack]
            name=arcane touch
        [/filter_attack]

        start_time=-260
        offset=0.0~0.1:10,0.1~0.5:250,0.5~0.6:100,0.6~0.6:150,0.6~0.15:200,0.15~0.0:150
        [frame]
            duration=280
            image="units/faeries/ivyel.png"
        [/frame]
        [frame]
            image="units/faeries/ivyel.png"
            halo="halo/elven/druid-healing[1~8].png:75"
            halo_mod="~R(-50)~G(25)"
            halo_x,halo_y=10,14
        [/frame]

        {SOUND:HIT_AND_MISS fist.ogg {SOUND_LIST:MISS} -50}
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=gossamer
        [/filter_attack]

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

        start_time=-450
        [frame]
            image="units/faeries/ivyel.png"
            halo="halo/elven/faerie-fire-halo[1~7].png:75"
            halo_x,halo_y=-8,6
        [/frame]

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

    [attack_anim]
        [filter_attack]
            name=ethereal storm
        [/filter_attack]

        {MISSILE_FRAME_FAERIE_FIRE}

        start_time=-450
        [frame]
            image="units/faeries/ivyel.png"
            halo="halo/elven/faerie-fire-halo[1~7].png:75"
            halo_x,halo_y=-8,6
        [/frame]

        {SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-faeriefire-miss.ogg -450}
    [/attack_anim]
    [extra_anim]
        flag=cutscene_burning
        start_time=-400

        {FLAME_BLAST_ANIMATION}

        # Override stock animation offsets
        {FLAME_BLAST_AFFECTS_SELF}

        [frame]
            #sound=fire.wav
            image="units/faeries/ivyel.png"
            duration=100
        [/frame]
        [frame]
            sound={SOUND_LIST:ELF_FEMALE_HIT}
            image="units/faeries/ivyel.png"
            duration=100
        [/frame]
        [frame]
            duration=200
            image="units/faeries/ivyel.png"
        [/frame]
        [frame]
            sound={SOUND_LIST:ELF_FEMALE_HIT}
            image="units/faeries/ivyel-damaged.png"
            duration=100
        [/frame]
        [frame]
            sound=fire.wav
            image="units/faeries/ivyel-damaged.png"
            duration=100
        [/frame]
    [/extra_anim]
[/unit_type]

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


#textdomain wesnoth-After_the_Storm

#ifndef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
[unit_type]
    id=Sylvan Warden
    name= _ "female^Sylvan Warden"
    race=faerie
    gender=female
    image="units/faeries/elynia.png"
    profile="portraits/elynia.png"
    halo="halo/elynia-stationary-[1~6].png:150"
    hitpoints=61
    movement_type=elynia_lowfloat
    movement=6
    experience=64
    level=3
    alignment=neutral
    advances_to=null
    {AMLA_TREE:ELYNIA_EPISODE_1}
#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_II
    {AMLA_TREE:ELYNIA_EPISODE_2}
#endif
    {AMLA_VITALITY}
    cost=110
    usage=healer
    description= _ "Elynia’s mastery of faerie magic remains unrivaled on Irdya, even without the legendary power of the Union of Light and Darkness. Always dutiful as the sworn protector of elvenkind and the forests of Irdya, she will do anything to stop those who may threaten her people or upset the delicate balance of nature."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [abilities]
        {ABILITY_SYLVAN_ESSENCE}
    [/abilities]
    [attack]
        name=staff
        description={TSTR_ATTACK_NAME_STAFF}
        icon=attacks/staff-niryone.png
        type=impact
        damage=6
        number=3
        range=melee
    [/attack]
    [attack]
        name=ensnare
        description={TSTR_ATTACK_NAME_ENSNARE}
        type=impact
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
        damage=6
        number=2
        range=ranged
        icon=attacks/entangle.png
    [/attack]
    [attack]
        name=thorns
        description={TSTR_ATTACK_NAME_THORNS}
        type=pierce
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=7
        number=3
        range=ranged
        icon=attacks/thorns.png
    [/attack]
    [attack]
        name=mystic fire
        description= _ "mystic fire"
        icon=attacks/fireball.png
        type=fire
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=5
        number=5
        range=ranged
    [/attack]

    {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 }

    [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]

    [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]

    [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]

    [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]

    [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]

    [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]

    #
    # Extra animations
    #

    [extra_anim]
        flag=shine_golden
        start_time=0
        [frame]
            duration=3200
            image="units/faeries/elynia.png"
            blend_ratio=0~0.75:1600,0.75~0:1600
            blend_color=255,255,127
        [/frame]
    [/extra_anim]

    [variation]
        variation_id=faerie_fire_cutscene
        inherit=yes
        hide_help=yes

        # Do not merge with any existing animations
        [extra_anim]
            __remove=yes
        [/extra_anim]
        [standing_anim]
            __remove=yes
        [/standing_anim]

        [standing_anim]
            start_time=0
            halo_x,halo_y=10,0

            [frame]
                image="units/faeries/elynia-attack-ranged-2.png"
                halo="halo/elven/ice-halo[1~9].png:100"
            [/frame]
        [/standing_anim]

        [extra_anim]
            flag=cutscene_begin
            start_time=0

            [frame]
                sound=magic-faeriefire.ogg
                image="units/faeries/elynia-attack-ranged-[1~2].png:100"
            [/frame]
        [/extra_anim]

        [extra_anim]
            flag=cutscene_end
            start_time=-900
            halo_x,halo_y=10,0

            [frame]
                image="units/faeries/elynia-attack-ranged-2.png"
                halo="halo/elven/ice-halo[1~9].png~O(0.[9,9,8,8,7,7,6,6,5]):100"
            [/frame]
            [frame]
                image="units/faeries/elynia-attack-ranged-1.png"
                halo="halo/elven/ice-halo[1~9].png~O(0.[5,4,4,3,3,2,2,1,1]):100"
            [/frame]
        [/extra_anim]
    [/variation]

    [variation]
        variation_id=chained
        inherit=yes
        hide_help=yes
        image="units/faeries/elynia-chained.png"
    [/variation]

    [variation]
        variation_id=injured
        inherit=yes
        hide_help=yes
        image="units/faeries/elynia-injured.png"
        image_icon="units/faeries/elynia.png" # sidebar icon
        halo="misc/blank-hex.png" # hide shimmering halo
        # hide ellipse
        ellipse=none # wmllint: no ellipsecheck

        # The defense animations are used in E2S11.
        {DEFENSE_ANIM_RANGE "units/faeries/elynia-injured.png" "units/faeries/elynia-injured.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
        {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/elynia-injured.png" "units/faeries/elynia-injured.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [/variation]
[/unit_type]
#endif

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


#textdomain wesnoth-After_the_Storm

#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
#ifndef __WMLUNITS__
[unit_type]
    id=Sylvan Warden
    name= _ "female^Sylvan Warden"
    race=faerie
    gender=female
    image="units/faeries/elynia-e3.png"
    profile="portraits/elynia.png"
    halo="halo/elynia-stationary-[1~6].png:150"
    hitpoints=61
    movement_type=elynia_lowfloat
    movement=6
    experience=64
    level=3
    alignment=neutral
    advances_to=null
    {AMLA_TREE:ELYNIA_EPISODE_1}
    {AMLA_TREE:ELYNIA_EPISODE_2}
    {AMLA_TREE:ELYNIA_EPISODE_3}
    {AMLA_VITALITY}
    cost=110
    usage=healer
    description= _ "Elynia’s mastery of faerie magic remains unrivaled on Irdya, even without the legendary power of the Union of Light and Darkness. Always dutiful as the sworn protector of elvenkind and the forests of Irdya, she will do anything to stop those who may threaten her people or upset the delicate balance of nature."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [abilities]
        {ABILITY_SYLVAN_ESSENCE}
    [/abilities]
    [attack]
        name=faerie touch
        description={TSTR_ATTACK_NAME_FAERIE_TOUCH}
        icon=attacks/touch-faerie.png
        type=impact
        damage=6
        number=2
        range=melee
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=ensnare
        description={TSTR_ATTACK_NAME_ENSNARE}
        type=impact
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
        damage=6
        number=2
        range=ranged
        icon=attacks/entangle.png
    [/attack]
    [attack]
        name=thorns
        description={TSTR_ATTACK_NAME_THORNS}
        type=pierce
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=7
        number=3
        range=ranged
        icon=attacks/thorns.png
    [/attack]
    [attack]
        name=mystic fire
        description= _ "mystic fire"
        icon=attacks/fireball.png
        type=fire
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=5
        number=5
        range=ranged
    [/attack]

    {DEFENSE_ANIM_RANGE "units/faeries/elynia-e3-defense-2.png" "units/faeries/elynia-e3-defense-1.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/elynia-e3-defense-2.png" "units/faeries/elynia-e3-defense-1.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }

    [healing_anim]
        start_time=-300
        [frame]
            image="units/faeries/elynia-e3-attack-ranged-[1~3,2~1].png:[75*2,300,75*2]"
            halo="halo/elven/druid-healing1.png:65,halo/elven/druid-healing[2~7].png:75,halo/elven/druid-healing8.png:65"
        [/frame]
    [/healing_anim]

    [attack_anim]
        [filter_attack]
            name=faerie touch
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries/elynia-e3-attack-melee.png:280"
        [/frame]
        [frame]
            image="units/faeries/elynia-e3-attack-melee.png"
            halo="halo/elven/druid-healing[1~8].png:75"
            halo_x,halo_y=10,14
        [/frame]

        {SOUND:HIT_AND_MISS fist.ogg {SOUND_LIST:MISS} -50}
    [/attack_anim]

    [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-e3-attack-ranged-[1~3,2~1].png:[75*2,300,75*2]"
            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]

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

        {MISSILE_FRAME_FAERIE_MYSTIC_FIRE}

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

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

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

    [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-e3-attack-ranged-[1~3,2~1].png:[75*2,300,75*2]"
            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]

    [attack_anim]
        [filter_attack]
            name=faerie fire
        [/filter_attack]

        {MISSILE_FRAME_FAERIE_FIRE}

        start_time=-500
        halo_x,halo_y=-12,-2
        [frame]
            image="units/faeries/elynia-e3-attack-ranged-1.png:50"
        [/frame]
        [frame]
            image="units/faeries/elynia-e3-attack-ranged-[1~3,2~1].png:[25,75,300,72*2]"
            halo="halo/elven/faerie-fire-halo[1~7].png:75"
        [/frame]

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

    #
    # Extra animations
    #

    [variation]
        variation_id=injured
        inherit=yes
        hide_help=yes
        image="units/faeries/elynia-injured.png"
        halo="misc/blank-hex.png" # hide shimmering halo
        # hide ellipse
        ellipse=none # wmllint: no ellipsecheck
    [/variation]
[/unit_type]
#endif
#endif

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


#textdomain wesnoth-After_the_Storm

#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
[unit_type]
    id=Guardian of Earth Elynia
    name= _ "female^Guardian of Earth"
    race=faerie
    gender=female
    image="units/faeries/elynia-f.png"
    profile="portraits/elynia.png"
    halo="halo/elynia-stationary-[1~6].png:150"
    hitpoints=127
    movement_type=elynia_lowfloat
    [resistance]
        arcane=100
        impact=90
        fire=80
        cold=90
    [/resistance]
    movement=6
    experience=172
    level=6
    alignment=neutral
    advances_to=null
    {AMLA_TREE:ELYNIA_GUARDIAN}
    {AMLA_VITALITY}
    cost=820
    usage=healer
    hide_help=true
    undead_variation=null
    # wmllint: notecheck off
    description= _ "There is no information available about this class of beings at this time."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [abilities]
        {ABILITY_ASPECT_OF_EARTH}
        {ABILITY_PROTECTION}
    [/abilities]
    [attack]
        name=faerie touch
        description={TSTR_ATTACK_NAME_FAERIE_TOUCH}
        icon=attacks/touch-faerie.png
        type=impact
        damage=10
        number=2
        range=melee
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=ensnare
        description={TSTR_ATTACK_NAME_ENSNARE}
        type=impact
        [specials]
            {WEAPON_SPECIAL_SLOW}
            {WEAPON_SPECIAL_STUN}
        [/specials]
        damage=9
        number=4
        range=ranged
        icon=attacks/entangle.png
    [/attack]
    [attack]
        name=arcane rage
        description= _ "arcane rage"
        icon=attacks/arcane-rage.png
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=18
        number=3
        range=ranged
    [/attack]

    {GUARDIAN_DEFENSE_ANIM 0 255 196 "units/faeries/elynia-f-attack-melee-1.png" "units/faeries/elynia-f-attack-ranged-1.png" {SOUND_LIST:ELF_FEMALE_HIT} }

    [healing_anim]
        start_time=-300
        [frame]
            image="units/faeries/elynia-f-attack-ranged-[1~3,2~1].png:[75*2,300,75*2]"
            halo="halo/elven/druid-healing1.png:65,halo/elven/druid-healing[2~7].png:75,halo/elven/druid-healing8.png:65"
        [/frame]
    [/healing_anim]

    [attack_anim]
        [filter_attack]
            name=faerie touch
        [/filter_attack]
        start_time=-300

        [frame]
            image="units/faeries/elynia-f-attack-ranged-1.png:150"
        [/frame]
        [frame]
            image="units/faeries/elynia-f-attack-melee-1.png:75"
        [/frame]
        [frame]
            image="units/faeries/elynia-f-attack-melee-[2~1].png:[150,200],units/faeries/elynia-f-attack-ranged-1.png:250"
            halo="halo/elven/druid-healing[1~8].png:75"
            halo_x,halo_y=10,14
        [/frame]

        {SOUND:HIT_AND_MISS fist.ogg {SOUND_LIST:MISS} -50}
    [/attack_anim]

    [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-f-attack-ranged-[1~3,2~1].png:[75*2,300,72*2]"
            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]

    [attack_anim]
        [filter_attack]
            name=arcane rage
        [/filter_attack]

        aura_start_time=-450
        aura_auto_vflip=false
        aura_halo_mod="~CS(0,255,196)~O(0.5)"
        aura_halo_x,aura_halo_y=0,10
        aura_offset=0.0~0.1
        [aura_frame]
            halo="halo/elven/druid-healing[1~8].png:75"
        [/aura_frame]

        beam_start_time=-500
        beam_auto_vflip=no
        beam_offset=0.0
        beam_halo_mod="~CS(0,255,255)~O(0.3)"
        [beam_frame]
            halo="halo/holy/light-beam-[1~7,6~1].png:[30*6,130,70*6]"
        [/beam_frame]

        missile_image_mod="~CS(0,255,128)"
        missile_halo_mod="~CS(0,255,128)"
        {MISSILE_FRAME_FAERIE_FIRE}

        start_time=-500
        halo_mod="~CS(-128,-16,-38)~O(0.4)"
        halo_x,halo_y=-16,-4
        [frame]
            image="units/faeries/elynia-f-attack-ranged-1.png:50"
        [/frame]
        [frame]
            image="units/faeries/elynia-f-attack-ranged-[1~3,2~1].png:[25,75,300,72*2]"
            halo="halo/elven/faerie-fire-halo[1~7].png:75"
        [/frame]

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

    #
    # Extra animations
    #

    [variation]
        variation_id=injured
        inherit=yes
        image="units/faeries/elynia-injured.png"
        image_icon="units/faeries/elynia-f.png" # sidebar icon
        halo="misc/blank-hex.png" # hide shimmering halo
        # hide ellipse
        ellipse=none # wmllint: no ellipsecheck

        # The defense animations are used in E3S9.
        {DEFENSE_ANIM_RANGE "units/faeries/elynia-injured.png" "units/faeries/elynia-injured.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
        {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/elynia-injured.png" "units/faeries/elynia-injured.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [/variation]

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

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


#textdomain wesnoth-After_the_Storm

#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
[unit_type]
    id=Anya Cutscene Controller
    name=" " # wmllint: ignore
    race=invisible_dummy_race
    image_icon="misc/blank-hex.png"
    ellipse=none # wmllint: no ellipsecheck
    gender=female
    hitpoints=1
    movement_type=none
    movement=0
    level=0
    alignment=chaotic
    advances_to=null
    cost=1
    usage=null
    undead_variation=null
    hide_help=true
    description="" # wmllint: ignore

    #
    # TODO: coalesce single-use macros after testing
    #

#define ANYA_CC_FRAME_IMAGE_PATH _FRAME_SUFFIX
    image="units/faeries/nightshade-fire-awakening-"+{_FRAME_SUFFIX}+".png"
#enddef

#define ANYA_CC_ANIM_INIT
    start_time=0

    alpha=0.0

    a_start_time=0
    b_start_time=0

    a_offset=0.0
    b_offset=0.0

    a_auto_hflip=no
    b_auto_hflip=no

    a_auto_vflip=no
    b_auto_vflip=no

    [a_frame]
        alpha="1.0"
        duration=1
    [/a_frame]

    [b_frame]
        alpha="0.0"
        duration=1
    [/b_frame]
#enddef

#define ANYA_CC_ANIM_INTERPOLATE _FRAME_A_SUFFIX _FRAME_B_SUFFIX
    [a_frame]
        alpha="1.0~0.0:1000,0.0:1000"
        {ANYA_CC_FRAME_IMAGE_PATH ({_FRAME_A_SUFFIX})}
        duration=2000
    [/a_frame]

    [b_frame]
        alpha="0.0~1.0:1000,1.0:1000"
        {ANYA_CC_FRAME_IMAGE_PATH ({_FRAME_B_SUFFIX})}
        duration=2000
    [/b_frame]
#enddef

#define ANYA_ANIMATION_STEP_VARIATION _FRAME_A_SUFFIX _FRAME_B_SUFFIX
    [variation]
        inherit=yes
        variation_id="animation_step_"+{_FRAME_B_SUFFIX} # wmllint: ignore

        {ANYA_CC_FRAME_IMAGE_PATH ({_FRAME_B_SUFFIX})}

        [recruit_anim]
            {ANYA_CC_ANIM_INIT}

            {ANYA_CC_ANIM_INTERPOLATE ({_FRAME_A_SUFFIX}) ({_FRAME_B_SUFFIX})}
        [/recruit_anim]
    [/variation]
#enddef

    {ANYA_CC_FRAME_IMAGE_PATH 1}

    #
    # If we don't override the recruited anim in the base variation, things
    # break horribly when doing so in variations using inherit=yes.
    #
    [recruit_anim]
        {ANYA_CC_ANIM_INIT}

        {ANYA_CC_ANIM_INTERPOLATE 1 1}
    [/recruit_anim]

    #
    # Define the marshmallow steps through variations with custom 'recruited' animations.
    # The rest is handled by WML events in the scenario.
    #

    {ANYA_ANIMATION_STEP_VARIATION 1 2} # animation_step_2

    {ANYA_ANIMATION_STEP_VARIATION 2 3} # animation_step_3

    {ANYA_ANIMATION_STEP_VARIATION 3 4} # animation_step_4

    {ANYA_ANIMATION_STEP_VARIATION 4 5} # animation_step_5

    {ANYA_ANIMATION_STEP_VARIATION 5 6} # animation_step_6 (animation unused)
    [+variation]
        halo="halo/anya-attack-halo.png"
    [/variation]

    {ANYA_ANIMATION_STEP_VARIATION 6 7} # animation_step_7 (animation unused)
    [+variation]
        halo="halo/anya-attack-halo.png"
    [/variation]

#undef ANYA_CC_FRAME_IMAGE_PATH
#undef ANYA_CC_ANIM_INIT
#undef ANYA_CC_ANIM_INTERPOLATE
#undef ANYA_ANIMATION_STEP_VARIATION
[/unit_type]
#endif

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


#textdomain wesnoth-After_the_Storm

#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
[unit_type]
    id=Communicator Controller
    name=" " # wmllint: ignore
    race=invisible_dummy_race
    image="misc/blank-hex.png"
    ellipse=none # wmllint: no ellipsecheck
    hitpoints=1
    movement_type=none
    movement=0
    level=0
    alignment=neutral
    advances_to=null
    cost=1
    usage=null
    undead_variation=null
    hide_help=true
    description=" " # wmllint: ignore

#define CC_VARIATION _VARIATION_ID _LEVEL _BASEFRAME _PROFILE
    [variation]
        variation_id={_VARIATION_ID}
        inherit=yes
        # Used when standing anims are disabled -- image mods are important!
        image={_BASEFRAME}+"~GS()~O(0.8)"
        profile={_PROFILE}
        level={_LEVEL}

        [standing_anim]
            opacity="0.8:500,0.2:100,0.8:400"
            [frame]
                begin=0
                end=500
                image={_BASEFRAME}
                image_mod="~GS()"
            [/frame]
            [frame]
                begin=500
                end=600
                image={_BASEFRAME}
            [/frame]
            [frame]
                begin=600
                end=650
                image={_BASEFRAME}
                image_mod="~BL(2)"
            [/frame]
            [frame]
                begin=650
                end=1000
                image={_BASEFRAME}
                image_mod="~GS()"
            [/frame]
        [/standing_anim]

        [standing_anim]
            opacity="0.8:1000,0.2:100,0.8:3200,0.4:200,0.8:500"
            [frame]
                begin=0
                end=950
                image={_BASEFRAME}
                image_mod="~GS()"
            [/frame]
            [frame]
                begin=950
                end=1050
                image={_BASEFRAME}
            [/frame]
            [frame]
                begin=1050
                end=1150
                image={_BASEFRAME}
                image_mod="~GS()~BL(1)"
            [/frame]
            [frame]
                begin=1150
                end=1200
                image={_BASEFRAME}
            [/frame]
            [frame]
                begin=1200
                end=2100
                image={_BASEFRAME}
                image_mod="~GS()"
            [/frame]
            [frame]
                begin=2100
                end=2150
                image={_BASEFRAME}
                image_mod="~GS()~BL(1)"
            [/frame]
            [frame]
                begin=2150
                end=3800
                image={_BASEFRAME}
                image_mod="~GS()"
            [/frame]
            [frame]
                begin=3800
                end=3850
                image={_BASEFRAME}
                image_mod="~GS()~BL(2)"
            [/frame]
            [frame]
                begin=3850
                end=5000
                image={_BASEFRAME}
                image_mod="~GS()"
            [/frame]
        [/standing_anim]

        [death]
            opacity="0.8:100,0.1:100,0.8:100,0.1:100,0.4:100,0.0:500"
            image_mod="~GS()"
            [frame]
                duration=1000
                image={_BASEFRAME}
            [/frame]
        [/death]

        [death]
            opacity="0.8:100,0.1:100,0.8:100,0.0:700"
            image_mod="~GS()"
            [frame]
                duration=1000
                image={_BASEFRAME}
            [/frame]
        [/death]

        [death]
            opacity="0.8:400,0.1:100,0.8:100,0.0:400"
            image_mod="~GS()"
            [frame]
                duration=1000
                image={_BASEFRAME}
            [/frame]
        [/death]
    [/variation]
#enddef

    {CC_VARIATION uria 6
    ("units/demons/guardian-of-life-uria-silhouette.png")
    ()} # ("images/portraits/uria.png")

#undef CC_VARIATION
[/unit_type]
#endif

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


#textdomain wesnoth-After_the_Storm

#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
[unit_type]
    id=Dream Controller
    name=" " # wmllint: ignore
    race=invisible_dummy_race
    image="misc/blank-hex.png"
    hitpoints=1
    movement_type=none
    movement=0
    level=0
    alignment=neutral
    advances_to=null
    cost=1
    usage=null
    undead_variation=null
    hide_help=true
    # wmllint: notecheck off
    description=" " # wmllint: ignore

#define DC_VARIATION _VARIATION_ID _NAME _BASEFRAME _PROFILE _EXTRA_WML
    [variation]
        variation_id={_VARIATION_ID}
        name={_NAME}
        inherit=yes
        image={_BASEFRAME}
        profile={_PROFILE}

        {_EXTRA_WML}

        [death]
            alpha=0.0
            [frame]
                duration=1
                image={_BASEFRAME}
            [/frame]
        [/death]
    [/variation]
#enddef

    {DC_VARIATION niryone _"Elvish Spellbinder" "units/elves-wood/spellbinder.png" () (
        race=elf
        gender=female
        hitpoints=61
        movement_type=woodland
        movement=6
        experience=150
        level=3
        [attack]
            name=staff
            description={TSTR_ATTACK_NAME_STAFF}
            icon=attacks/staff-niryone.png
            type=impact
            damage=6
            number=3
            range=melee
        [/attack]
    )}

    # See Elyssa's Guardian unit WML.
#define DC_ELYSSA_ANIMATIONS
    [attack_anim]
        [filter_attack]
            name=claw of urvatha
        [/filter_attack]
        [frame]
            begin=-250
            end=-125
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-125
                end=-100
                sound=magic-dark.ogg
            [/frame]
            [frame]
                begin=-100
                end=100
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-125
                end=-100
            [/frame]
            [frame]
                begin=-100
                end=100
                sound=spear-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
        [/frame]
    [/attack_anim]
#enddef

    {DC_VARIATION elyssa1 _"Human" "units/shaxthal/warlord-elyssa-f-illusion-1.png" (portraits/elyssa-unscarred.png) (
        race=human
        level=5
        hitpoints=145
    )}

    {DC_VARIATION elyssa2 _"Demoness" "units/shaxthal/warlord-elyssa-f.png" (portraits/elyssa.png) (
        race=demon
        level=6
        hitpoints=145
        [attack]
            name=claw of urvatha # needed by events
            description= _ "niryone’s staff"
            type=arcane
            range=melee
            damage=18
            number=2
            icon=attacks/staff-elven-star.png # FIXME: placeholder
            [specials]
                {WEAPON_SPECIAL_MAGICAL}
                [+chance_to_hit]
                    name= _ "rightfully yours"
                [/chance_to_hit]
            [/specials]
        [/attack]

        {DC_ELYSSA_ANIMATIONS}
    )}

    #{DC_VARIATION elyssa3 _"Abomination" "units/shaxthal/deathbringer-3.png" ("misc/blank-hex.png~SCALE(390,390)") (
    {DC_VARIATION elyssa3 _"Abomination" "units/shaxthal/warlord-elyssa-f.png" (portraits/elyssa.png) (
        race=demon
        level=6
        hitpoints=145
        [attack]
            name=claw of urvatha # needed by events
            description= _ "kill her"
            type=arcane
            range=melee
            damage=18
            number=2
            icon=attacks/staff-elven-star.png # FIXME: placeholder
            [specials]
                {WEAPON_SPECIAL_MAGICAL}
                [+chance_to_hit]
                    name= _ "kill her"
                [/chance_to_hit]
            [/specials]
        [/attack]

        {DC_ELYSSA_ANIMATIONS}
    )}

    {DC_VARIATION galas _"Helpless" "units/elves-wood/wayfarer.png" (portraits/galas.png) (
        race=elf
        level=3
        hitpoints=61
        [attack]
            name=1
            description= _ "you did"
            type=blade
            range=melee
            damage=9
            number=4
            icon=attacks/sword-elven.png
        [/attack]
        [attack]
            name=2
            description= _ "nothing to"
            icon=attacks/bow-elven.png
            type=pierce
            range=ranged
            damage=9
            number=3
        [/attack]
        [attack]
            name=3
            description= _"save him"
            type=impact
            range=ranged
            damage=9
            number=2
        [/attack]
    )}

    {DC_VARIATION argan1 _"Argan" "units/shaxthal/master-of-darkness+unmasked.png" ("portraits/argan+unmasked.png") (
        race=human
        level=6
        hitpoints=217
        [attack]
            name=1
            description= _ "argan"
            icon=attacks/touch-undead.png
            type=arcane
            range=melee
            damage=6
            number=4
        [/attack]
        [attack]
            name=2
            description= _ "argan"
            type=cold
            range=ranged
            damage=11
            number=3
            icon=attacks/iceball.png
        [/attack]
        [attack]
            name=3
            description= _ "argan"
            type=arcane
            range=ranged
            damage=12
            number=5
        [/attack]
    )}

    {DC_VARIATION argan2 _"Argan" "units/human-norsulans/master-of-darkness.png" () (
        race=human
        level=4
        hitpoints=217
        [attack]
            name=1
            name=1
            description= _ "dead"
            type=blade
            range=melee
            damage=10
            number=4
            icon=attacks/scimitar.png
        [/attack]
        [attack]
            name=2
            description= _ "dead"
            type=cold
            range=ranged
            damage=11
            number=3
            icon=attacks/iceball.png
        [/attack]
        [attack]
            name=3
            description= _ "dead"
            type=arcane
            range=ranged
            damage=12
            number=5
        [/attack]
    )}

    {DC_VARIATION anya _"Foolish Girl" "units/faeries/nightshade-fire.png" () (
        race=faerie
        level=3
        hitpoints=62
        halo="halo/elven/shyde-stationary-halo[1~6].png:150"
        [attack]
            name=1
            description= _ "naïve"
            icon=attacks/touch-faerie.png
            type=impact
            range=melee
            damage=7
            number=2
        [/attack]
        [attack]
            name=2
            description= _ "lovestruck"
            type=cold
            range=ranged
            damage=11
            number=2
            icon=attacks/forest-chill.png
        [/attack]
        [attack]
            name=3
            description= _ "cannot admit it"
            type=arcane
            range=ranged
            damage=10
            number=3
            icon=attacks/noctum.png
        [/attack]
    )}

    {DC_VARIATION elynia1 _"Elvish Child" "units/faeries/elynia-zzz-1.png" (portraits/elynia-zzz-1.png) (
        race=elf
        gender=female
        hitpoints=58
        movement_type=woodland
        movement=6
        experience=150
        level=3
        [attack]
            name=staff
            description={TSTR_ATTACK_NAME_STAFF}
            icon=attacks/druidstaff.png
            type=impact
            damage=6
            number=3
            range=melee
        [/attack]
    )}

    {DC_VARIATION elynia2 _"Faerie Harlot" "units/faeries/elynia-zzz-2.png" (portraits/elynia.png) (
        race=faerie
        gender=female
        hitpoints=61
        movement_type=elynia_lowfloat
        movement=6
        experience=100
        level=2
        halo="halo/elynia-stationary-[1~6].png:150"
        [attack]
            name=1
            description= _ "selfish"
            icon=attacks/staff-niryone.png
            type=impact
            damage=8
            number=3
            range=melee
        [/attack]

        [attack]
            name=2
            description= _ "arrogant"
            icon=attacks/lightbeam.png
            type=arcane
            damage=17
            number=4
            range=ranged
            [specials]
                [dummy]
                    name= _ "traitor"
                [/dummy]
            [/specials]
        [/attack]
    )}

    {DC_VARIATION elynia3 _"Murderer" "units/faeries/elynia.png" (portraits/elynia.png) (
        race=monster
        gender=female
        hitpoints=61
        movement_type=elynia_lowfloat
        movement=6
        experience=50
        level=1
        halo="halo/elynia-stationary-[1~6].png:150"
        {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 }
        [attack]
            name=1
            description= _ "argan’s blood"
            icon=attacks/staff-niryone.png
            type=impact
            damage=512
            number=32
            range=melee
            [specials]
                [dummy]
                    name= _ "everywhere"
                [/dummy]
            [/specials]
        [/attack]

        [attack]
            name=2
            description= _ "argan’s flesh"
            icon=attacks/lightbeam.png
            type=arcane
            damage=256
            number=16
            range=ranged
            [specials]
                [dummy]
                    name= _ "rotting"
                [/dummy]
            [/specials]
        [/attack]

        [attack]
            name=3
            description= _ "argan’s bones"
            icon=attacks/fangs.png
            type=arcane
            damage=128
            number=8
            range=ranged
            [specials]
                [dummy]
                    name= _ "charred"
                [/dummy]
            [/specials]
        [/attack]
    )}

    {DC_VARIATION elynia4 _"Abomination" "units/faeries/elynia-injured.png" (misc/blank-hex.png) (
        race=demon
        gender=female
        level=0
        image_icon="units/faeries/elynia-f.png" # sidebar icon
        ellipse=none
        halo="halo/elynia-stationary-[1~6].png:150"
        {DEFENSE_ANIM_RANGE "units/faeries/elynia-injured.png" "units/faeries/elynia-injured.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
        {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/elynia-injured.png" "units/faeries/elynia-injured.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
        [attack]
            name=1
            description= _ "does not"
            icon=attacks/fist.png
            type=impact
            damage=1024
            number=1024
            range=melee
            [specials]
                [dummy]
                    name= _ "belong"
                [/dummy]
            [/specials]
        [/attack]
    )}

    {DC_VARIATION elynia5 _"Abomination" "units/faeries/elynia-injured.png" (misc/blank-hex.png) (
        race=demon
        gender=female
        level=0
        image_icon="units/faeries/elynia-f.png" # sidebar icon
        ellipse=none
        halo="halo/elynia-stationary-[1~6].png:150"
        {DEFENSE_ANIM_RANGE "units/faeries/elynia-injured.png" "units/faeries/elynia-injured.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
        {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/elynia-injured.png" "units/faeries/elynia-injured.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
        [attack]
            name=1
            description= _ "kill me"
            icon=attacks/fist.png
            type=impact
            damage=1024
            number=1024
            range=melee
            [specials]
                [dummy]
                    name= _ "kill me"
                [/dummy]
            [/specials]
        [/attack]
    )}

#undef DC_VARIATION
[/unit_type]
#endif

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


#textdomain wesnoth-After_the_Storm

#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
[unit_type]
    id=Dwarvish Engineer
    name=" " # wmllint: ignore
    race=dwarf
    image="units/unknown-unit.png"
    ellipse=none # wmllint: no ellipsecheck
    hitpoints=54
    movement_type=dwarvishfoot
    [resistance]
        blade=50
        pierce=50
        impact=50
    [/resistance]
    movement=4
    level=4
    alignment=neutral
    cost=80
    usage=fighter
    advances_to=null
    experience=200
    {AMLA_DEFAULT}
    hide_help=true
    description=" " # wmllint: ignore
[/unit_type]
#endif

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


#textdomain wesnoth-After_the_Storm

#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
[unit_type]
    id=Epilogue Cutscene Controller
    name=" " # wmllint: ignore
    race=invisible_dummy_race
    image_icon="misc/blank-hex.png"
    hitpoints=1
    movement_type=woodlandfloat
    movement=0
    level=0
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=1
    usage=null
    undead_variation=null
    hide_help=true
    description="" # wmllint: ignore

#define ECC_VARIATION _VARIATION_ID _UNIT_TYPE_LABEL _BASEFRAME _WML
    [variation]
        variation_id={_VARIATION_ID}
        inherit=yes

        name={_UNIT_TYPE_LABEL}
        race=faerie
        image={_BASEFRAME}
        halo="halo/elven/shyde-stationary-halo[1~6].png:150"

        {_WML}
    [/variation]
#enddef

    #
    # Does not exist on Irdya.
    #
    {ECC_VARIATION domain_guard (_"Domain Guard") "units/faeries/domain-guard.png" (
        hitpoints=56
        level=2
        experience=100
        movement=5
        cost=37
        # No die_sound!
        {DEFENSE_ANIM_RANGE units/faeries/domain-guard.png units/faeries/domain-guard.png {SOUND_LIST:ELF_HIT} melee }
        {DEFENSE_ANIM_ELVEN_RANGE units/faeries/domain-guard.png units/faeries/domain-guard.png {SOUND_LIST:ELF_HIT} ranged }
        [resistance]
            blade=90
            impact=90
        [/resistance]
    )}

    #
    # Part of a generic Dark Faerie unit line.
    #
    {ECC_VARIATION eventide_dancer (_"female^Eventide Dancer") "units/faeries/eventide-dancer.png" (
        gender=female
        hitpoints=60
        level=3
        experience=150
        movement=6
        cost=78
        # No die_sound!
        {DEFENSE_ANIM_RANGE units/faeries/eventide-dancer.png units/faeries/eventide-dancer.png {SOUND_LIST:ELF_FEMALE_HIT} melee }
        {DEFENSE_ANIM_ELVEN_RANGE units/faeries/eventide-dancer.png units/faeries/eventide-dancer.png {SOUND_LIST:ELF_FEMALE_HIT} ranged }
        [movement_costs]
            cave=1
        [/movement_costs]
        [defense]
            cave=50
            forest=40
        [/defense]
        [resistance]
            fire=110
            cold=80
        [/resistance]
    )}

    #
    # Part of a generic Water Faerie unit line.
    #
    {ECC_VARIATION naiad (_"female^Naiad") "units/faeries/naiad.png" (
        gender=female
        hitpoints=54
        level=3
        experience=150
        movement=6
        cost=68
        # No die_sound!
        {DEFENSE_ANIM_RANGE units/faeries/naiad.png units/faeries/naiad.png {SOUND_LIST:ELF_FEMALE_HIT} melee }
        {DEFENSE_ANIM_ELVEN_RANGE units/faeries/naiad.png units/faeries/naiad.png {SOUND_LIST:ELF_FEMALE_HIT} ranged }
        [movement_costs]
            deep_water=1
        [/movement_costs]
        [defense]
            deep_water=50
            shallow_water=40
            reef=30
            swamp_water=40
        [/defense]
        [resistance]
            cold=80
        [/resistance]
    )}
[/unit_type]

#undef ECC_VARIATION

#endif

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Fake Explosion
    name=" " # wmllint: ignore
    race=invisible_dummy_race
    image="misc/blank-hex.png"
    ellipse=none # wmllint: no ellipsecheck
    hitpoints=0
    movement_type=fly
    movement=0
    experience=0
    level=1
    alignment=neutral
    advances_to=null
    cost=1
    usage=scout
    description=""
    hide_help=true
    die_sound=explosion-big.ogg,explosion.ogg
    [death]
        start_time=0
        layer=99
        [frame]
            duration=75
            image="projectiles/fireball-impact-4.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-5.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-6.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-7.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-8.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-9.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-10.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-11.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-12.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-13.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-14.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-15.png"
        [/frame]
        [frame]
            duration=75
            image="projectiles/fireball-impact-16.png"
        [/frame]
        [frame]
            duration=1
            image="misc/blank-hex.png"
        [/frame]
    [/death]
[/unit_type]


#textdomain wesnoth-After_the_Storm

#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
[unit_type]
    id=Memory Controller
    name=" " # wmllint: ignore
    race=invisible_dummy_race
    image="misc/blank-hex.png"
    ellipse=none # wmllint: no ellipsecheck
    hitpoints=1
    movement_type=none
    movement=0
    level=0
    alignment=neutral
    advances_to=null
    cost=1
    usage=null
    undead_variation=null
    hide_help=true
    description=" " # wmllint: ignore

#define MC_VARIATION _VARIATION_ID _LEVEL _BASEFRAME _PROFILE
    [variation]
        variation_id={_VARIATION_ID}
        inherit=yes
        image={_BASEFRAME}+"~GS()~O(0.6)"
        profile={_PROFILE}+"~GS()"
        level={_LEVEL}

        [death]
            [frame]
                duration=120
                opacity="1.0~0.0"
                image={_BASEFRAME}+"~GS()~O(0.6)"
            [/frame]
        [/death]
    [/variation]
#enddef

    {MC_VARIATION argan 5
    ("units/shaxthal/master-of-darkness.png")
    ("portraits/argan.png")}

    {MC_VARIATION argan_unmasked 5
    ("units/shaxthal/master-of-darkness+unmasked.png")
    ("portraits/argan+unmasked.png")}

    {MC_VARIATION elyssa 3
    ("units/shaxthal/warlord-elyssa.png")
    ("portraits/elyssa-unscarred.png")}

#undef MC_VARIATION
[/unit_type]
#endif

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Aragwaith Seer
    name= _ "female^Seer"
    race=aragwaith
    gender=female
    image="units/human-aragwaithi/seer.png"
    hitpoints=44
    movement_type=aragwaithfoot
    movement=5
    experience=150
    level=3
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=70
    usage=healer
    [abilities]
        {ABILITY_CURES}
    [/abilities]
    description= _ "Very few humans are born with a gift that allows them to see the world beyond time and space. These rare individuals are usually not skilled in combat, but their special ability makes them highly respected amongst other ranks of magi in civilized countries."
    {DEFENSE_ANIM "units/human-aragwaithi/seer.png" "units/human-aragwaithi/seer.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
    die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
    [attack]
        name=staff
        description={TSTR_ATTACK_NAME_STAFF}
        icon=attacks/staff-ruby.png
        type=impact
        range=melee
        damage=8
        number=2
    [/attack]
    [attack]
        name=fireball
        description={TSTR_ATTACK_NAME_FIREBALL}
        icon=attacks/fireball.png
        type=fire
        range=ranged
        damage=10
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=staff
        [/filter_attack]

        start_time=-250
        [frame]
            image="units/human-aragwaithi/seer.png:50"
        [/frame]
        [frame]
            image="units/human-aragwaithi/seer-attack-[1~2].png:100"
        [/frame]
        [frame]
            image="units/human-aragwaithi/seer-ranged.png:75"
        [/frame]
        [frame]
            image="units/human-aragwaithi/seer.png:75"
        [/frame]

        {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fireball
        [/filter_attack]
        {MISSILE_FRAME_FIREBALL_XY 0 0}
        start_time=-575
        [frame]
            duration=50
            image="units/human-aragwaithi/seer.png"
        [/frame]
        [frame]
            duration=100
            image="units/human-aragwaithi/seer-ranged.png"
            sound=fire.wav
        [/frame]
        [frame]
            duration=150
            image="units/human-aragwaithi/seer-ranged.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-aragwaithi/seer-ranged.png"
        [/frame]
        [frame]
            duration=75
            image="units/human-aragwaithi/seer.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Chaos Gunner
    name= _ "Chaos Gunner"
    race=human
    image="units/human-chaos/gunner.png"
    hitpoints=35
    movement_type=smallfoot
    movement=5
    experience=42
    level=1
    alignment=chaotic
    advances_to=Chaos Marksman
    cost=20
    usage=mixed fighter
    [defense]
        sand=60
    [/defense]
    description="" # FIXME
    die_sound={SOUND_LIST:HUMAN_DIE}
    [attack]
        name=short sword
        description={TSTR_ATTACK_NAME_SHORT_SWORD}
        icon=attacks/sword-human-short.png
        type=blade
        range=melee
        damage=4
        number=3
    [/attack]
    [attack]
        name=gun
        description= _ "gun"
        icon=attacks/thunderstick.png
        type=pierce
        range=ranged
        damage=10
        number=2
    [/attack]

    {DEFENSE_ANIM_RANGE "units/human-chaos/gunner.png" "units/human-chaos/gunner.png" {SOUND_LIST:HUMAN_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/human-chaos/gunner.png" "units/human-chaos/gunner.png" {SOUND_LIST:HUMAN_HIT} ranged}

    [attack_anim]
        [filter_attack]
            name=gun
        [/filter_attack]
        [if]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_DIAG_SOUTH 0 0}
            direction=se,sw
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/gunner.png"
                sound=thunderstick.ogg
            [/frame]
        [/if]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=se,sw
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/gunner.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_DIAG_NORTH 0 20}
            direction=ne,nw
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/gunner.png"
                sound=thunderstick.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=ne,nw
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/gunner.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_NORTH 0 20}
            direction=n
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/gunner.png"
                sound=thunderstick.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=n
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/gunner.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_SOUTH 0 0}
            direction=s
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/gunner.png"
                sound=thunderstick.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=s
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/gunner.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=0
            end=1
            image="units/human-chaos/gunner.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=short sword
        [/filter_attack]
        start_time=-275
        [frame]
            duration=50
            #image="units/human-chaos/gunner-melee-defend-1.png"
            image="units/human-chaos/gunner.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-chaos/gunner-melee-attack-1.png"
            image="units/human-chaos/gunner.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                #image="units/human-chaos/gunner-melee-attack-2.png"
                image="units/human-chaos/gunner.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                #image="units/human-chaos/gunner-melee-attack-2.png"
                image="units/human-chaos/gunner.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            #image="units/human-chaos/gunner-melee-attack-3.png"
            image="units/human-chaos/gunner.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-chaos/gunner-melee-attack-4.png"
            image="units/human-chaos/gunner.png"
        [/frame]
        [frame]
            duration=50
            #image="units/human-chaos/gunner-melee-defend-1.png"
            image="units/human-chaos/gunner.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Chaos Marksman
    name= _ "Chaos Marksman"
    race=human
    image="units/human-chaos/marksman.png"
    hitpoints=53
    movement_type=smallfoot
    movement=5
    experience=73
    level=2
    alignment=chaotic
    advances_to=Chaos Sharpshooter
    cost=30
    usage=mixed fighter
    [defense]
        sand=60
    [/defense]
    description="" # FIXME
    die_sound={SOUND_LIST:HUMAN_DIE}
    [attack]
        name=sword
        description={TSTR_ATTACK_NAME_SWORD}
        icon=attacks/sword-human.png
        type=blade
        range=melee
        damage=7
        number=3
    [/attack]
    [attack]
        name=gun
        description= _ "gun"
        icon=attacks/thunderstick.png
        type=pierce
        range=ranged
        damage=15
        number=2
    [/attack]

    {DEFENSE_ANIM_RANGE "units/human-chaos/marksman.png" "units/human-chaos/marksman.png" {SOUND_LIST:HUMAN_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/human-chaos/marksman.png" "units/human-chaos/marksman.png" {SOUND_LIST:HUMAN_HIT} ranged}

    [attack_anim]
        [filter_attack]
            name=gun
        [/filter_attack]
        [if]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_DIAG_SOUTH 0 0}
            direction=se,sw
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/marksman.png"
                sound=thunderstick.ogg
            [/frame]
        [/if]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=se,sw
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/marksman.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_DIAG_NORTH 0 20}
            direction=ne,nw
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/marksman.png"
                sound=thunderstick.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=ne,nw
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/marksman.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_NORTH 0 20}
            direction=n
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/marksman.png"
                sound=thunderstick.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=n
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/marksman.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_SOUTH 0 0}
            direction=s
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/marksman.png"
                sound=thunderstick.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=s
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/marksman.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=0
            end=1
            image="units/human-chaos/marksman.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-275
        [frame]
            duration=50
            #image="units/human-chaos/gunner-melee-defend-1.png"
            image="units/human-chaos/marksman.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-chaos/gunner-melee-attack-1.png"
            image="units/human-chaos/marksman.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                #image="units/human-chaos/gunner-melee-attack-2.png"
                image="units/human-chaos/marksman.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                #image="units/human-chaos/gunner-melee-attack-2.png"
                image="units/human-chaos/marksman.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            #image="units/human-chaos/gunner-melee-attack-3.png"
            image="units/human-chaos/marksman.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-chaos/gunner-melee-attack-4.png"
            image="units/human-chaos/marksman.png"
        [/frame]
        [frame]
            duration=50
            #image="units/human-chaos/gunner-melee-defend-1.png"
            image="units/human-chaos/marksman.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Chaos Sharpshooter
    name= _ "Chaos Sharpshooter"
    race=human
    image="units/human-chaos/sharpshooter.png"
    hitpoints=69
    movement_type=smallfoot
    movement=5
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=43
    usage=mixed fighter
    [defense]
        sand=60
    [/defense]
    description="" # wmllint: ignore
    die_sound={SOUND_LIST:HUMAN_DIE}
    [attack]
        name=sword
        description={TSTR_ATTACK_NAME_SWORD}
        icon=attacks/sword-human.png
        type=blade
        range=melee
        damage=10
        number=3
    [/attack]
    [attack]
        name=gun
        description= _ "gun"
        icon=attacks/thunderstick.png
        type=pierce
        range=ranged
        damage=25
        number=2
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
    [/attack]

    {DEFENSE_ANIM_RANGE "units/human-chaos/sharpshooter.png" "units/human-chaos/sharpshooter.png" {SOUND_LIST:HUMAN_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/human-chaos/sharpshooter.png" "units/human-chaos/sharpshooter.png" {SOUND_LIST:HUMAN_HIT} ranged}

    [attack_anim]
        [filter_attack]
            name=gun
        [/filter_attack]
        [if]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_DIAG_SOUTH 0 0}
            direction=se,sw
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/sharpshooter.png"
                sound=dragonstick.ogg
            [/frame]
        [/if]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=se,sw
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/sharpshooter.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_DIAG_NORTH 0 20}
            direction=ne,nw
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/sharpshooter.png"
                sound=dragonstick.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=ne,nw
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/sharpshooter.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_NORTH 0 20}
            direction=n
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/sharpshooter.png"
                sound=dragonstick.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=n
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/sharpshooter.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_HIT_SOUTH 0 0}
            direction=s
            hits=yes
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/sharpshooter.png"
                sound=dragonstick.ogg
            [/frame]
        [/else]
        [else]
            {MISSILE_FRAME_MUZZLE_FLARE_MISS 0 0}
            direction=s
            hits=no
            [frame]
                begin=-400
                end=0
                image="units/human-chaos/sharpshooter.png"
                sound=thunderstick-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=0
            end=1
            image="units/human-chaos/sharpshooter.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-275
        [frame]
            duration=50
            #image="units/human-chaos/marksman-melee-defend-1.png"
            image="units/human-chaos/sharpshooter.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-chaos/marksman-melee-attack-1.png"
            image="units/human-chaos/sharpshooter.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                #image="units/human-chaos/marksman-melee-attack-2.png"
                image="units/human-chaos/sharpshooter.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                #image="units/human-chaos/marksman-melee-attack-2.png"
                image="units/human-chaos/sharpshooter.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            #image="units/human-chaos/marksman-melee-attack-3.png"
            image="units/human-chaos/sharpshooter.png"
        [/frame]
        [frame]
            duration=100
            #image="units/human-chaos/marksman-melee-attack-4.png"
            image="units/human-chaos/sharpshooter.png"
        [/frame]
        [frame]
            duration=50
            #image="units/human-chaos/marksman-melee-defend-1.png"
            image="units/human-chaos/sharpshooter.png"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Chaos Dreadcrafter
    name= _ "Chaos Dreadcrafter"
    race=human
    image="units/human-chaos/dreadcrafter.png"
    hitpoints=56
    movement_type=smallfoot
    [resistance]
        fire=80
        cold=80
        arcane=120
    [/resistance]
    movement=4
    experience=200
    level=4
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=130
    [abilities]
        {ABILITY_CURES}
    [/abilities]
    usage=healer
    hide_help=yes
    description= _ "The processes involved in the creation of new biomechanical weaponry, and similar hybrid lifeforms—now at the helm of the very Empire—remain a mystery for outsiders. It is said that a barely known order of Lorekeepers was formed under Mal Zagarn’s supervision to gather the resources and knowledge required to perform this duty."
    die_sound={SOUND_LIST:HUMAN_OLD_DIE}
    {DEFENSE_ANIM "units/human-chaos/dreadcrafter.png" "units/human-chaos/dreadcrafter.png" {SOUND_LIST:HUMAN_OLD_HIT} }
[/unit_type]

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Civilian
    name= _ "female^Civilian"
    race=human
    gender=female
    image="units/human-peasants/civilian+female.png"
    hitpoints=25
    movement_type=smallfoot
    movement=5
    experience=24
    level=0
    alignment=chaotic
    advances_to=Messenger
    cost=8
    usage=fighter
    description= _ "Commoners without any kind of combat training, magic abilities or medical expertise are strikingly useless on the battlefield. It would take a great deal of incompetence to send one such person across the marchlands and wild forests of the Far North without an adequately armed escort."
    die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
    [attack]
        name=club
        description={TSTR_ATTACK_NAME_CLUB}
        icon=attacks/club-small.png
        type=impact
        range=melee
        damage=3
        number=2
    [/attack]

    {DEFENSE_ANIM "units/human-peasants/civilian+female.png" "units/human-peasants/civilian+female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }

    [attack_anim]
        [filter_attack]
            name=club
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-peasants/civilian+female.png"
                sound=club.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-peasants/civilian+female.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-peasants/civilian+female.png"
        [/frame]
    [/attack_anim]
[/unit_type]

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Master of Darkness
    name= _ "Master of Darkness"
    race=human
    image="units/human-norsulans/master-of-darkness.png"
    # FIXME: no halo for now, makes Elynia look weird during
    # a cutscene.
    #halo="halo/darkens-aura.png"
    #profile="portraits/argan-human.png" FIXME
    hitpoints=91
    movement_type=elusivefoot
    movement=6
    experience=200
    level=4
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=310
    usage=mixed fighter
    hide_help=yes
    # wmllint: notecheck off
    description="" # wmllint: ignore
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-norsulans/master-of-darkness.png" "units/human-norsulans/master-of-darkness.png" {SOUND_LIST:HUMAN_OLD_HIT} }
    [abilities]
        {ABILITY_OBSCURE}
        {ABILITY_SKIRMISHER}
    [/abilities]
    [attack]
        name=sword
        description={TSTR_ATTACK_NAME_SWORD}
        type=blade
        range=melee
        damage=11
        number=4
        icon=attacks/scimitar.png
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack]
        name=infernal chill
        description= _ "infernal chill"
        type=cold
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=13
        number=3
        icon=attacks/iceball.png
    [/attack]
    [attack]
        name=noctum
        description= _ "noctum"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=13
        number=5
    [/attack]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        [frame]
            begin=-225
            end=-175
            image="units/human-norsulans/master-of-darkness.png"
        [/frame]
        [frame]
            begin=-175
            end=-100
            image="units/human-norsulans/master-of-darkness.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/human-norsulans/master-of-darkness.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/human-norsulans/master-of-darkness.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
            image="units/human-norsulans/master-of-darkness.png"
        [/frame]
        [frame]
            begin=175
            end=200
            image="units/human-norsulans/master-of-darkness.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=noctum
        [/filter_attack]
        start_time=-400
        {NOCTUM_BEAM_ANIMATION}
        [frame]
            duration=180
            image="units/human-norsulans/master-of-darkness.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=180
                image="units/human-norsulans/master-of-darkness.png"
                sound=magic-dark-big.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=180
                image="units/human-norsulans/master-of-darkness.png"
                sound=magic-dark-big-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=140
            image="units/human-norsulans/master-of-darkness.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/human-norsulans/master-of-darkness.png"
            halo=halo/saurian-magic-halo-1.png
        [/frame]
        [frame]
            duration=60
            image="units/human-norsulans/master-of-darkness.png"
            halo=halo/saurian-magic-halo-2.png
            sound=magicmissile.wav
        [/frame]
        [frame]
            duration=70
            image="units/human-norsulans/master-of-darkness.png"
            halo=halo/saurian-magic-halo-3.png
        [/frame]
        [frame]
            duration=80
            image="units/human-norsulans/master-of-darkness.png"
            halo=halo/saurian-magic-halo-4.png
        [/frame]
        [frame]
            duration=90
            image="units/human-norsulans/master-of-darkness.png"
            halo=halo/saurian-magic-halo-5.png
        [/frame]
        [frame]
            duration=100
            image="units/human-norsulans/master-of-darkness.png"
            halo=halo/saurian-magic-halo-6.png
        [/frame]
        [frame]
            duration=100
            image="units/human-norsulans/master-of-darkness.png"
            halo=halo/saurian-magic-halo-7.png
        [/frame]
    [/attack_anim]
[/unit_type]

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Messenger
    name= _ "female^Messenger"
    race=human
    gender=female
    image="units/human-peasants/civilian+female.png"
    hitpoints=30
    movement_type=smallfoot
    movement=5
    experience=50
    {AMLA_DEFAULT}
    level=1
    alignment=chaotic
    advances_to=null
    cost=14
    usage=fighter
    description= _ "Commoners without any kind of combat training, magic abilities or medical expertise are strikingly useless on the battlefield. It would take a great deal of incompetence to send one such person across the marchlands and wild forests of the Far North without an adequately armed escort."
    die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
    [attack]
        name=club
        description={TSTR_ATTACK_NAME_CLUB}
        icon=attacks/club-small.png
        type=impact
        range=melee
        damage=4
        number=2
    [/attack]

    {DEFENSE_ANIM "units/human-peasants/civilian+female.png" "units/human-peasants/civilian+female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }

    [attack_anim]
        [filter_attack]
            name=club
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=0
                image="units/human-peasants/civilian+female.png"
                sound=club.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=0
                image="units/human-peasants/civilian+female.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=0
            end=200
            image="units/human-peasants/civilian+female.png"
        [/frame]
    [/attack_anim]
[/unit_type]

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Ixthala Fire Dancer
    name= _ "Ixthala Fire Dancer"
    race=imps
    image="units/imps/ixthala-fire-dancer.png"
    hitpoints=60
    movement_type=lizard
    [resistance]
        fire=70
    [/resistance]
    movement=6
    experience=150
    {AMLA_DEFAULT}
    level=3
    alignment=chaotic
    advances_to=null
    cost=50
    usage=fighter
    description= _ "Coming from the blazing lands of fire and brimstone in Inferno to aid in the invasion of Irdya, these dangerous fire demons are now said to serve one of Uria’s most ruthless commanders. With their flaming swords they are intent on spreading death and destruction throughout the land."
    die_sound=drake-die.ogg
    {DEFENSE_ANIM "units/imps/ixthala-fire-dancer-defend2.png" "units/imps/ixthala-fire-dancer-defend.png" {SOUND_LIST:DRAKE_HIT} }
    [attack]
        name=flaming sword
        description= _"flaming sword"
        icon=attacks/sword-flaming.png
        type=fire
        range=melee
        damage=12
        number=4
    [/attack]
    [attack_anim]
        [filter_attack]
            name=flaming sword
        [/filter_attack]
        start_time=-250
        offset=0:100,0~0.5:100,0.5~0.7:100,0.7~0:100,0.
        [frame]
            image="units/imps/ixthala-fire-dancer-attack-[1~3,1].png:[100,100,100,100]"
        [/frame]
        flame_start_time=0
        [if]
            hits=yes
            [frame]
                image="units/imps/ixthala-fire-dancer.png:350"
            [/frame]
            [flame_frame]
                image="projectiles/fire-burst-small-[1~8].png~SCALE(80,80):[50*8]"
                offset=1.0
                auto_vflip=no
                layer=10
            [/flame_frame]
        [/if]
        {SOUND:HIT_AND_MISS torch.ogg torch-miss.ogg 75}
    [/attack_anim]
[/unit_type]

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Serpent Messenger
    name= _ "Serpent Messenger"
    race=imps
    image="units/imps/serpent-messenger.png"
    image_icon="units/imps/serpent-messenger.png~SCALE(72,72)"
    hitpoints=66
    movement_type=demonfly
    movement=6
    experience=150
    {AMLA_DEFAULT}
    level=3
    alignment=chaotic
    advances_to=null
    cost=56
    usage=scout
    [abilities]
        {ABILITY_TERROR}
    [/abilities]
    description= _ "Legend tells of the mighty serpent god who defied Uria and was shortly defeated by her. In order to set an example for other demon lords who could consider defying or betraying her, his soul was sealed into stone. His followers—once worshipers of the power of light—were turned to the darkness and changed into wretched creatures charged with the mission of spreading fear and panic to dishearten her victims.

Regardless of the veracity of their origins, they can be quite effective against lesser creatures and the weak-willed, whereas brave and experienced warriors find them to be little more than a nuisance on the battlefield."
    die_sound=drake-die.ogg
    {DEFENSE_ANIM "units/imps/serpent-messenger.png" "units/imps/serpent-messenger.png" {SOUND_LIST:DRAKE_HIT} }
    [attack]
        name=fangs
        description={TSTR_ATTACK_NAME_FANGS}
        icon=attacks/fangs-animal.png
        type=blade
        range=melee
        damage=10
        number=3
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fangs
        [/filter_attack]
        [frame]
            begin=-350
            end=-250
            image="units/imps/serpent-messenger.png"
        [/frame]
        [frame]
            begin=-250
            end=-100
            image="units/imps/serpent-messenger.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-100
                end=-50
                image="units/imps/serpent-messenger.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-100
                end=-50
                image="units/imps/serpent-messenger.png"
                sound=bite.ogg
            [/frame]
        [/else]
        [frame]
            begin=-50
            end=200
            image="units/imps/serpent-messenger.png"
        [/frame]
    [/attack_anim]
[/unit_type]

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Valdemon Basher
    name= _ "Valdemon Basher"
    race=imps
    image="units/imps/valdemon-basher.png"
    hitpoints=57
    movement_type=valdemonfoot
    movement=5
    experience=100
    {AMLA_DEFAULT}
    level=2
    alignment=chaotic
    advances_to=null
    cost=34
    usage=fighter
    [abilities]
        {ABILITY_STEADFAST}
    [/abilities]
    description= _ "While these behemoths—native to the shores of Inferno—are remarkably dumb, they are quite skilled at using their heads—literally—to knock their opponents out of the way, allowing their smarter allies to trespass their defenses."
    die_sound=yeti-die.ogg
    {DEFENSE_ANIM "units/imps/valdemon-basher.png" "units/imps/valdemon-basher.png" yeti-hit.ogg }
    [attack]
        name=ram
        description={TSTR_ATTACK_NAME_RAM}
        icon=attacks/ram.png
        type=impact
        range=melee
        damage=11
        number=2
        [specials]
            {WEAPON_SPECIAL_STUN}
        [/specials]
    [/attack]
    [attack]
        name=claws
        description={TSTR_ATTACK_NAME_CLAWS}
        icon=attacks/claws-animal.png
        type=blade
        range=melee
        damage=8
        number=3
    [/attack]

    [attack_anim]
        [filter_attack]
            name=ram
        [/filter_attack]
        start_time=-300
        [frame]
            duration=225
            image="units/imps/valdemon-basher.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=100
                image="units/imps/valdemon-basher.png"
                sound=mace.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=100
                image="units/imps/valdemon-basher.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=300
            image="units/imps/valdemon-basher.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-250
        [frame]
            duration=125
            image="units/imps/valdemon-basher.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=75
                image="units/imps/valdemon-basher.png"
                sound=claws.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=75
                image="units/imps/valdemon-basher.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=250
            image="units/imps/valdemon-basher.png"
        [/frame]
    [/attack_anim]
[/unit_type]

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


#textdomain wesnoth-After_the_Storm

[unit_type]
    id=Magnum Suit
    name= _ "Magnum Suit"
    race=mechanical
    image="units/mechanical/magnum-suit.png"
    halo="halo/heart-aura.png~O(0.94):150,halo/heart-aura.png~O(0.92):150,halo/heart-aura.png~O(0.90):150,halo/heart-aura.png~O(0.88):150,halo/heart-aura.png~O(0.90):150,halo/heart-aura.png~O(0.92):150"
    hitpoints=190
    # armoredfoot resistances...
    movement_type=armoredfoot
    movement=8
    {NO_EXPERIENCE_UNIT}
    level=5
    alignment=neutral
    cost=67
    usage=fighter
    [resistance]
        arcane=50
        cold=60
        fire=60
    [/resistance]
    # fly+mountainfoot movement costs and defense.
    [movement_costs]
        {FLY_MOVE}
        cave=1
        fungus=1
    [/movement_costs]
    [defense]
        {FLY_DEFENSE 50}
        cave=50
        fungus=50
    [/defense]
    hide_help=true
    description= _ "The many parallels existing between dwarvish and Chaos technology have remained a troubling mystery for centuries. Although claims of lost prototypes and espionage have served well enough to satisfy the most inquisitive minds so far, many still suspected that some other force had to exist behind all that technological advancement."
    die_sound=bot-huge-explosion.ogg
    {DEFENSE_ANIM "units/mechanical/magnum-suit.png" "units/mechanical/magnum-suit.png" {SOUND_LIST:DWARF_HIT} }
    [abilities]
        {ABILITY_SKIRMISHER}
        {ABILITY_ABSORB_DAMAGE}
        {ABILITY_ASPECT_DESTROYER}
        {ABILITY_LEADERSHIP}
    [/abilities]
    [attack]
        name=soul hammer
        description= _ "soul hammer"
        icon=attacks/hammer-troll.png
        type=impact
        range=melee
        damage=20
        number=2
        attack_weight=3.0
        [specials]
            {WEAPON_SPECIAL_SEISMIC}
        [/specials]
    [/attack]
    [attack]
        name=flamethrower
        description= _ "flamethrower"
        type=fire
        range=ranged
        damage=10
        number=10
        icon=attacks/fire-blast.png
        [specials]
            {WEAPON_SPECIAL_SWARM}
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
    [/attack]

    [attack_anim]
        [filter_attack]
            name=soul hammer
        [/filter_attack]
        start_time=-400
        offset="0.0~-0.25:200,-0.25~1.0:200,1.0~0.0"
        [frame]
            duration=300
            image="units/mechanical/magnum-suit.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=250
                image="units/mechanical/magnum-suit.png"
                sound=hammer-heavy.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=250
                image="units/mechanical/magnum-suit.png"
                sound=hammer-heavy-miss.ogg
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/mechanical/magnum-suit.png"
        [/frame]
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=flamethrower
        [/filter_attack]

        {MISSILE_FRAME_FIRE_BREATH 9,-34 9,15 22,-22 24,10}

        [if]
            hits=no
            [frame]
                begin=-400
                end=-350
                image="units/mechanical/magnum-suit.png"
                sound=flame-big-miss.ogg
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-400
                end=-350
                image="units/mechanical/magnum-suit.png"
                sound=flame-big.ogg
            [/frame]
        [/else]
        [frame]
            begin=-350
            end=-150
            image="units/mechanical/magnum-suit.png"
        [/frame]
        [frame]
            begin=-150
            end=0
            image="units/mechanical/magnum-suit.png"
        [/frame]
    [/attack_anim]
[/unit_type]

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