#textdomain wesnoth-Genesis

#define AMLA_CRIMSONFAE
    {AMLA_OPTION_MALEFICE_MELEE}
    {AMLA_OPTION_BOIL_RANGE}
    {AMLA_OPTION_HEAL_RANGE}
    {AMLA_DEFAULT}
#enddef
#define AMLA_OPTION_MALEFICE_MELEE
    [advancement]
        max_times=-1
        description=_"stronger melee attack"
        image=units/fae/aryel.png
        id=amla_boil_crimsonfae
        strict_amla=yes
        [effect]
            apply_to=attack
            name=malefic whisper
            increase_damage=1
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=25%
        [/effect]
    [/advancement]
#enddef
#define AMLA_OPTION_BOIL_RANGE
    [advancement]
        max_times=-1
        description=_"stronger bloodboil magic"
        image=units/fae/aryel.png
        id=amla_boil_crimsonfae
        strict_amla=yes
        [effect]
            apply_to=attack
            name=blood boil
            increase_damage=1
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=30%
        [/effect]
    [/advancement]
#enddef
#define AMLA_OPTION_HEAL_RANGE
    [advancement]
        max_times=-1
        description=_"stronger eviscerate"
        image=units/fae/aryel.png
        id=amla_eviscerate_crimsonfae
        strict_amla=yes
        [effect]
            apply_to=attack
            name=eviscerate
            increase_damage=1
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=30%
        [/effect]
    [/advancement]
#enddef

#define ARYEL_ADVANCEMENT HP_INCREMENT XP_INCREMENT EFFECT_WML VARIATION_NAME
    [advancement]
        max_times=-1
        always_display=yes
        [effect]
            apply_to=hitpoints
            increase_total={HP_INCREMENT}
            increase={HP_INCREMENT}
        [/effect]
        [effect]
            apply_to=max_experience
            increase={XP_INCREMENT}
        [/effect]
        [effect]
            apply_to=variation
            name={VARIATION_NAME}
        [/effect]
        {EFFECT_WML}
    [/advancement]
#enddef

#define ARYEL_EXTENERATE VARIANT_NAME
    {ARYEL_ADVANCEMENT 4 0 (
        id=aryel_extenerate
        description= _ "eviscerate gains the magical special and doubles healing to allies"
        image=attacks/faerie-fire.png
        [effect]
            apply_to=attack
            name=eviscerate
            [set_specials]
                {WEAPON_SPECIAL_MAGICAL}
                {WEAPON_SPECIAL_SOUL_SIPHON}
            [/set_specials]
        [/effect]
        [effect]
            apply_to=attack
            name=eviscerate
            increase_damage=2
        [/effect]
        [effect]
            apply_to=attack
            name=eviscerate
            set_name=extenerate
            set_description= _ "extenerate"
        [/effect]
		[effect]
            apply_to=max_experience
            increase=-100%
        [/effect]
        [effect]
            apply_to=max_experience
            increase=69
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define MORTAL_MASQUE_SPECIAL VARIANT_NAME
    {ARYEL_ADVANCEMENT 7 0 (
        id=mortal_masque
        description= _ "blood boil gains strikes with decreasing health"
        image=attacks/fireball.png
        [effect]
            apply_to=attack
            name=blood boil
            [set_specials]
                {WEAPON_SPECIAL_AGONY}
				{WEAPON_SPECIAL_MAGICAL}
                {WEAPON_SPECIAL_MORTAL_MASQUE}
            [/set_specials]
        [/effect]
        [effect]
            apply_to=attack
            name=blood boil
            increase_damage=2
        [/effect]
        [effect]
            apply_to=max_experience
            increase=-100%
        [/effect]
        [effect]
            apply_to=max_experience
            increase=69
        [/effect]
    ) {VARIANT_NAME}}
#enddef

############################### T4 ABILITIES ################################

#define CRIMSON_IRON_WARDEN VARIANT_NAME
    {ARYEL_ADVANCEMENT 2 230 (
        id=crimson_iron_warden
        description= _ "protects nearby units on defense"
        image=attacks/heater-shield.png
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_IRON_WARDEN}
            [/abilities]
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define CRIMSON_TRANSFUSION VARIANT_NAME
    {ARYEL_ADVANCEMENT 4 230 (
        id=crimson_transfusion
        description= _ "damages nearby enemy units and heals based on damage dealt"
        image=attacks/wail.png
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_TRANSFUSION}
            [/abilities]
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define CRIMSON_HEALING VARIANT_NAME
    {ARYEL_ADVANCEMENT 7 200 (
        id=crimson_healing
        description= _ "improved healing"
        image=attacks/thorns.png
        [effect]
            apply_to=remove_ability
            [abilities]
                {ABILITY_INFUSE6}
            [/abilities]
        [/effect]
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_INFUSE9}
            [/abilities]
        [/effect]
    ) {VARIANT_NAME}}
#enddef

############################### ADVANCED BONUSES ################################
#define CRIMSON_MELEE2 VARIANT_NAME
    {ARYEL_ADVANCEMENT 5 140 (
        id=crimson_melee2
        description= _ "stronger melee attacks"
        image=attacks/wail.png
        [effect]
            apply_to=attack
            name=malefic whisper
            increase_damage=3
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define CRIMSON_RANGE VARIANT_NAME
    {ARYEL_ADVANCEMENT 2 140 (
        id=crimson_range
        description= _ "stronger ranged attacks"
        image=attacks/fireball.png
        [effect]
            apply_to=attack
            name=blood boil
            increase_damage=2
        [/effect]
        [effect]
            apply_to=attack
            name=eviscerate
            increase_damage=1
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define CRIMSON_BALANCED_HEALTH VARIANT_NAME
    {ARYEL_ADVANCEMENT 9 140 (
        id=crimson_balanced
        description= _ "gains bonus health"
        image=attacks/heater-shield.png
        [effect]
            apply_to=attack
            name=malefic whisper
            increase_damage=1
        [/effect]
    ) {VARIANT_NAME}}
#enddef
############################### BASIC BONUSES ################################
#define CRIMSON_MELEE VARIANT_NAME
    {ARYEL_ADVANCEMENT 5 55 (
        id=crimson_melee
        description= _ "increased melee damage"
        image=attacks/wail.png
        [effect]
            apply_to=attack
            name=malefic whisper
            increase_damage=2
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define CRIMSON_BOIL VARIANT_NAME
    {ARYEL_ADVANCEMENT 3 50 (
        id=crimson_boil
        description= _ "increased blood boil damage"
        image=attacks/fireball.png
        [effect]
            apply_to=attack
            name=blood boil
            increase_damage=2
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define CRIMSON_EVISCERATE VARIANT_NAME
    {ARYEL_ADVANCEMENT 3 55 (
        id=crimson_eviscerate
        description= _ "increased eviscerate damage"
        image=attacks/faerie-fire.png
        [effect]
            apply_to=attack
            name=eviscerate
            increase_damage=1
        [/effect]
    ) {VARIANT_NAME}}
#enddef
##############################################################################

#define ARYEL_BASE
    id=Crimson Fae
    race=fae
    gender=female
    name= _ "Crimson Fae"
    image="units/fae/aryel.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    halo=halo/elven/shyde-stationary-halo[1~6].png:150
    movement_type=crimsonfae
    movement=6
    alignment=chaotic
    advances_to=null
    cost=60
    usage=mixed fighter
    description= _ "There is no information available about this class of beings at this time."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [abilities]
        {ABILITY_INFUSE6}
        {ABILITY_IRON_BLOOD}
    [/abilities]
    [attack]
        name=malefic whisper
        description=_"malefic whisper"
        icon=attacks/wail.png
        type=arcane
        [specials]
            {WEAPON_SPECIAL_DRAIN100}
        [/specials]
        range=melee
        damage=9
        number=3
        range=melee
    [/attack]
    [attack]
        name=blood boil
        description=_"blood boil"
        type=fire
        [specials]
            {WEAPON_SPECIAL_AGONY}
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=9
        number=3
        range=ranged
        icon=attacks/dark-missile.png
    [/attack]
    [attack]
        name=eviscerate
        description=_"eviscerate"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_SOUL_SIPHON}
        [/specials]
        damage=7
        number=4
        range=ranged
        icon=attacks/faerie-fire.png
    [/attack]
    {SOUL_SIPHON "eviscerate" 1}
	{SOUL_SIPHON "extenerate" 0.5}
    {TRANSFUSION}
    {IRON_WARDEN 3}
    {DEFENSE_ANIM "units/fae/aryel.png" "units/fae/aryel.png" {SOUND_LIST:ELF_FEMALE_HIT} }
    [attack_anim]
        [filter_attack]
            name=blood boil
        [/filter_attack]
        {MISSILE_FRAME_FIREBALL}

        start_time=-470
        {SOUND:HIT_AND_MISS fire.wav fire.wav -470}
        [frame]
            image="units/fae/aryel.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=malefic whisper
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/fae/aryel.png:520"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=eviscerate,extenerate
        [/filter_attack]
        {MISSILE_FRAME_FAERIE_FIRE}

        start_time=-470
        {SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-faeriefire-miss.ogg -470}
        [frame]
            image="units/fae/aryel.png"
            halo=halo/elven/faerie-fire-halo[1~7].png:75
            halo_x,halo_y=0,0
        [/frame]
    [/attack_anim]
#enddef
[unit_type]
    {ARYEL_BASE}
    hitpoints=41
    experience=70
    level=3
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF3
        inherit=no
        level=3
        hitpoints=41
        experience=70
        name= _ "Crimson Fae"
        {CRIMSON_MELEE CF3MELEE}
        {CRIMSON_BOIL CF3BOIL}
        {CRIMSON_EVISCERATE CF3EVI}
    [/variation]
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF3MELEE
        inherit=no
        level=3
        hitpoints=41
        experience=100
        name= _ "Crimson Fae"
        {CRIMSON_BOIL CF4}
        {CRIMSON_EVISCERATE CF4}
    [/variation]
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF3BOIL
        inherit=no
        level=3
        hitpoints=41
        experience=100
        name= _ "Crimson Fae"
        {CRIMSON_MELEE CF4}
        {CRIMSON_EVISCERATE CF4}
    [/variation]
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF3EVI
        inherit=no
        level=3
        hitpoints=41
        experience=100
        name= _ "Crimson Fae"
        {CRIMSON_MELEE CF4}
        {CRIMSON_BOIL CF4}
    [/variation]

    ##################### LEVEL 4 #########################
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4
        inherit=no
        level=4
        hitpoints=41
        experience=140
        name= _ "Scarlet Sylph"
        {CRIMSON_MELEE CF4ABILITIES}
        {CRIMSON_BOIL CF4ABILITIES}
        {CRIMSON_EVISCERATE CF4ABILITIES}
    [/variation]

    #level4-2
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4ABILITIES
        inherit=no
        level=4
        hitpoints=41
        experience=170
        name= _ "Scarlet Sylph"
        {CRIMSON_TRANSFUSION CF4TRANS}
        {CRIMSON_IRON_WARDEN CF4IRON}
        {CRIMSON_HEALING CF4HEAL}
    [/variation]

    ################ level 4-3 ###################

    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4TRANS
        inherit=no
        level=4
        hitpoints=41
        experience=220
        name= _ "Scarlet Sylph"
        {CRIMSON_IRON_WARDEN CF4FINALNOHEAL}
        {CRIMSON_HEALING CF4FINALNOIRON}
        {CRIMSON_MELEE2 CF4FINALTRANS}
        {CRIMSON_RANGE CF4FINALTRANS}
        {CRIMSON_BALANCED_HEALTH CF4FINALTRANS}
    [/variation]
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4IRON
        inherit=no
        level=4
        hitpoints=41
        experience=220
        name= _ "Scarlet Sylph"
        {CRIMSON_TRANSFUSION CF4FINALNOHEAL}
        {CRIMSON_HEALING CF4FINALNOTRANS}
        {CRIMSON_MELEE2 CF4FINALIRON}
        {CRIMSON_RANGE CF4FINALIRON}
        {CRIMSON_BALANCED_HEALTH CF4FINALIRON}
    [/variation]
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4HEAL
        inherit=no
        level=4
        hitpoints=41
        experience=220
        name= _ "Scarlet Sylph"
        {CRIMSON_TRANSFUSION CF4FINALNOIRON}
        {CRIMSON_IRON_WARDEN CF4FINALNOTRANS}
        {CRIMSON_MELEE2 CF4FINALHEAL}
        {CRIMSON_RANGE CF4FINALHEAL}
        {CRIMSON_BALANCED_HEALTH CF4FINALHEAL}
    [/variation]

	################ level 4-4 ##################
	[variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4FINALNOHEAL
        inherit=no
        level=4
        hitpoints=41
        experience=270
        name= _ "Scarlet Sylph"
        {CRIMSON_HEALING CF5}
        {CRIMSON_MELEE2 CF5}
        {CRIMSON_RANGE CF5}
        {CRIMSON_BALANCED_HEALTH CF5}
    [/variation]
	[variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4FINALNOIRON
        inherit=no
        level=4
        hitpoints=41
        experience=270
        name= _ "Scarlet Sylph"
        {CRIMSON_IRON_WARDEN CF5}
        {CRIMSON_MELEE2 CF5}
        {CRIMSON_RANGE CF5}
        {CRIMSON_BALANCED_HEALTH CF5}
    [/variation]
	[variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4FINALNOTRANS
        inherit=no
        level=4
        hitpoints=41
        experience=270
        name= _ "Scarlet Sylph"
        {CRIMSON_TRANSFUSION CF5}
        {CRIMSON_MELEE2 CF5}
        {CRIMSON_RANGE CF5}
        {CRIMSON_BALANCED_HEALTH CF5}
    [/variation]
	[variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4FINALTRANS
        inherit=no
        level=4
        hitpoints=41
        experience=270
        name= _ "Scarlet Sylph"
        {CRIMSON_IRON_WARDEN CF5}
        {CRIMSON_HEALING CF5}
        {CRIMSON_MELEE2 CF5}
        {CRIMSON_RANGE CF5}
        {CRIMSON_BALANCED_HEALTH CF5}
    [/variation]
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4FINALIRON
        inherit=no
        level=4
        hitpoints=41
        experience=270
        name= _ "Scarlet Sylph"
        {CRIMSON_TRANSFUSION CF5}
        {CRIMSON_HEALING CF5}
        {CRIMSON_MELEE2 CF5}
        {CRIMSON_RANGE CF5}
        {CRIMSON_BALANCED_HEALTH CF5}
    [/variation]
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF4FINALHEAL
        inherit=no
        level=4
        hitpoints=41
        experience=270
        name= _ "Scarlet Sylph"
        {CRIMSON_TRANSFUSION CF5}
        {CRIMSON_IRON_WARDEN CF5}
        {CRIMSON_MELEE2 CF5}
        {CRIMSON_RANGE CF5}
        {CRIMSON_BALANCED_HEALTH CF5}
    [/variation]

	#################### LEVEL 5 #########################
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF5
        inherit=no
        level=5
        hitpoints=41
        experience=350
        name= _ "Sanguine Reaper"
        {ARYEL_EXTENERATE CF5FINAL}
        {MORTAL_MASQUE_SPECIAL CF5FINAL}
    [/variation]
    [variation]
        {ARYEL_BASE}
        hide_help=yes
        variation_id=CF5FINAL
        inherit=no
        level=5
        hitpoints=41
        experience=250
        name= _ "Sanguine Reaper"
        {AMLA_CRIMSONFAE}
    [/variation]
[/unit_type]


#textdomain wesnoth-Genesis

#define AMLA_ARCANEFAE
   {AMLA_OPTION_ARCANEMELEE}
   {AMLA_OPTION_YUMIVOID}
   {AMLA_OPTION_ARCANEFIRE}
   {AMLA_OPTION_ETHSTORM}
#enddef
#define AMLA_OPTION_ARCANEMELEE
    [advancement]
        max_times=-1
        description=_"increased physical strength"
        image=attacks/touch-faerie.png
        id=amla_melee_arcanefae
        strict_amla=yes
        [effect]
            apply_to=attack
            name=faerie touch
            increase_damage=1
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=25%
        [/effect]
    [/advancement]
#enddef
#define AMLA_OPTION_YUMIVOID
    [advancement]
        max_times=-1
        description=_"stronger void magic"
        image=attacks/dark-missile.png
        id=amla_void_arcanefae
        strict_amla=yes
        [effect]
            apply_to=attack
            name=void assault
            increase_attacks=1
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=20%
        [/effect]
    [/advancement]
#enddef
#define AMLA_OPTION_ARCANEFIRE
    [advancement]
        max_times=-1
        description=_"stronger faerie fire"
        image=attacks/faerie-fire.png
        id=amla_fire_arcanefae
        strict_amla=yes
        [effect]
            apply_to=attack
            name=faerie fire
            increase_damage=1
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=25%
        [/effect]
    [/advancement]
#enddef
#define AMLA_OPTION_ETHSTORM
    [advancement]
        max_times=-1
        description=_"stronger ethereal storm"
        image=attacks/faerie-fire.png
        id=amla_storm_duskfae
		require_amla=dusk_ethereal_storm
        strict_amla=yes
        [effect]
            apply_to=attack
            name=ethereal storm
            increase_damage=3
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=25%
        [/effect]
    [/advancement]
#enddef

#define YUMI_ADVANCEMENT HP_INCREMENT XP_INCREMENT EFFECT_WML VARIATION_NAME
    [advancement]
        max_times=-1
        always_display=yes
        [effect]
            apply_to=hitpoints
            increase_total={HP_INCREMENT}
            increase={HP_INCREMENT}
        [/effect]
        [effect]
            apply_to=max_experience
            increase={XP_INCREMENT}
        [/effect]
        [effect]
            apply_to=variation
            name={VARIATION_NAME}
        [/effect]
        {EFFECT_WML}
    [/advancement]
#enddef

#define DRAIN_SPECIAL VARIANT_NAME
    {YUMI_ADVANCEMENT 4 0 (
        id=drain_special
        description= _ "increases healing from faerie fire"
        image=attacks/faerie-fire.png
        [effect]
            apply_to=attack
            name=faerie fire
			increase_damage=2
            [set_specials]
                {WEAPON_SPECIAL_MAGICAL}
                {WEAPON_SPECIAL_DRAIN70}
            [/set_specials]
        [/effect]
        [effect]
            apply_to=movement
            increase=1
        [/effect]
        [effect]
            apply_to=max_experience
            increase=-100%
        [/effect]
        [effect]
            apply_to=max_experience
            increase=49
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define ECLIPSE_SPECIAL VARIANT_NAME
    {YUMI_ADVANCEMENT 0 0 (
        id=eclipse_special
        description= _ "increased void assault damage"
        image=attacks/dark-missile.png
        [effect]
            apply_to=attack
            name=void assault
            [set_specials]
                {WEAPON_SPECIAL_SLOW}
                {WEAPON_SPECIAL_ABEYANCE}
                {WEAPON_SPECIAL_ECLIPSE}
                {WEAPON_SPECIAL_CHAOS}
            [/set_specials]
        [/effect]
        [effect]
            apply_to=movement
            increase=1
        [/effect]
        [effect]
            apply_to=max_experience
            increase=-100%
        [/effect]
        [effect]
            apply_to=max_experience
            increase=49
        [/effect]
    ) {VARIANT_NAME}}
#enddef

############### first set of abilities #################
#define DUSK_NIGHT_HUNTER VARIANT_NAME
    {YUMI_ADVANCEMENT 0 230 (
        id=dusk_night_hunter
        description= _ "gains damage at night"
        image=units/fae/yumi.png
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_NIGHT_HUNTER}
            [/abilities]
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define DUSK_VOID_WARDEN VARIANT_NAME
    {YUMI_ADVANCEMENT 4 210 (
        id=dusk_void_warden
        description= _ "gains defense at night"
        image=units/fae/yumi.png
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_VOID_WARDEN}
            [/abilities]
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define DUSK_ETHEREAL_STORM VARIANT_NAME
    {YUMI_ADVANCEMENT 0 210 (
        id=dusk_ethereal_storm
        description= _ "gains a powerful ranged attack"
        image=attacks/faerie-fire.png
        [effect]
            apply_to=new_attack
            name=ethereal storm
            description= _"ethereal storm"
            type=cold
            range=ranged
            damage=41
            number=2
            [specials]
                {WEAPON_SPECIAL_CHAOS}
            [/specials]
            icon=attacks/faerie-fire.png
        [/effect]
        [effect]
            apply_to=new_animation
            [attack_anim]
                [filter_attack]
                    name=ethereal storm
                [/filter_attack]
                {MISSILE_FRAME_FAERIE_FIRE}

                start_time=-450
                {SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-faeriefire-miss.ogg -450}
                [frame]
                    image="units/fae/yumi.png"
                    halo=halo/elven/faerie-fire-halo[1~7].png:75
                    halo_x,halo_y=0,0
                [/frame]
            [/attack_anim]
        [/effect]
    ) {VARIANT_NAME}}
#enddef
############### basic advancements #################
#define YUMI_MELEE VARIANT_NAME
    {YUMI_ADVANCEMENT 2 50 (
        id=duskfae_melee
        description= _ "stronger in melee combat"
        image=attacks/touch-faerie.png
        [effect]
            apply_to=attack
            name=faerie touch
            increase_damage=2
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define YUMI_VOID VARIANT_NAME
    {YUMI_ADVANCEMENT 2 60 (
        id=duskfae_void
        description= _ "stronger void attack"
        image=attacks/dark-missile.png
        [effect]
            apply_to=attack
            name=void assault
            increase_attacks=2
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define ARCANEFIRE VARIANT_NAME
    {YUMI_ADVANCEMENT 2 70 (
        id=duskfae_melee
        description= _ "stronger faerie fire attack"
        image=attacks/faerie-fire.png
        [effect]
            apply_to=attack
            name=faerie fire
            increase_damage=2
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define YUMI_STORM VARIANT_NAME
    {YUMI_ADVANCEMENT 2 60 (
        id=duskfae_storm
        description= _ "stronger ethereal storm attack"
        require_amla=dusk_ethereal_storm
        image=attacks/faerie-fire.png
        [effect]
            apply_to=attack
            name=ethereal storm
            increase_damage=3
        [/effect]
    ) {VARIANT_NAME}}
#enddef
###################################################
############### resist amlas #################
#define MELEE_RESIST VARIANT_NAME
    {YUMI_ADVANCEMENT 4 150 (
        id=dusk_melee_resist
        description= _ "stronger in melee combat and gains +10% physical resistance"
        image=attacks/touch-faerie.png
        [effect]
            apply_to=attack
            name=faerie touch
            increase_damage=2
        [/effect]
        [effect]
            apply_to=resistance
            [resistance]
                blade=-10
                pierce=-10
                impact=-10
            [/resistance]
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define RANGE_RESIST VARIANT_NAME
    {YUMI_ADVANCEMENT 2 150 (
        id=dusk_range_resist
        description= _ "gains +10% to physical resistances and gains damage"
        image=attacks/heater-shield.png
        [effect]
            apply_to=resistance
            [resistance]
                blade=-10
                pierce=-10
                impact=-10
            [/resistance]
        [/effect]
        [effect]
            apply_to=attack
            name=faerie fire
            increase_damage=1
        [/effect]
        [effect]
            apply_to=attack
            name=void assault
            increase_attacks=1
        [/effect]
    ) {VARIANT_NAME}}
#enddef
###################################################
#define DUSK_MELEE_DOUBLE VARIANT_NAME
    {YUMI_ADVANCEMENT 4 140 (
        id=double_melee
        description= _ "stronger in melee combat"
        image=attacks/touch-faerie.png
        [effect]
            apply_to=attack
            name=faerie touch
            increase_damage=4
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define DUSK_VOID_DOUBLE VARIANT_NAME
    {YUMI_ADVANCEMENT 2 140 (
        id=double_void
        description= _ "stronger void attack"
        image=attacks/dark-missile.png
        [effect]
            apply_to=attack
            name=void assault
            increase_attacks=4
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define DUSK_FIRE_DOUBLE VARIANT_NAME
    {YUMI_ADVANCEMENT 2 160 (
        id=double_fire
        description= _ "stronger faerie fire attack"
        image=attacks/faerie-fire.png
        [effect]
            apply_to=attack
            name=faerie fire
            increase_damage=4
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define YUMI_STORM_DOUBLE VARIANT_NAME
    {YUMI_ADVANCEMENT 3 120 (
        id=duskfae_storm
        description= _ "stronger ethereal storm attack"
        require_amla=dusk_ethereal_storm
        image=attacks/faerie-fire.png
        [effect]
            apply_to=attack
            name=ethereal storm
            increase_damage=5
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define YUMI_BASE
    id=Dusk Fae
    race=fae
    gender=female
    name= _ "Dusk Fae"
    image="units/fae/yumi.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    halo=halo/elven/shyde-stationary-halo[1~6].png:150
    movement_type=duskfae
    movement=6
    alignment=chaotic
    advances_to=null
    cost=60
    usage=mixed fighter
    description= _ "There is no information available about this class of beings at this time."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [abilities]
        {ABILITY_CLARITY}
        {ABILITY_CLAIRVOYANCE}
    [/abilities]
    [attack]
        name=faerie touch
        description=_"faerie touch"
        icon=attacks/touch-faerie.png
        type=impact
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
            {WEAPON_SPECIAL_DRAIN30}
        [/specials]
        range=melee
        damage=6
        number=3
        range=melee
    [/attack]
    [attack]
        name=void assault
        description=_"void assault"
        type=cold
        [specials]
            {WEAPON_SPECIAL_SLOW}
            {WEAPON_SPECIAL_ABEYANCE}
            {WEAPON_SPECIAL_CHAOS}
        [/specials]
        damage=0
        number=7
        range=ranged
        icon=attacks/dark-missile.png
    [/attack]
    [attack]
        name=faerie fire
        description=_"faerie fire"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_DRAIN40}
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=7
        number=5
        range=ranged
        icon=attacks/faerie-fire.png
    [/attack]
    {ABEYANCE "void assault" 5}
    {ECLIPSE "void assault" 2}
    {DEFENSE_ANIM "units/fae/yumi.png" "units/fae/yumi.png" {SOUND_LIST:ELF_FEMALE_HIT} }
    [attack_anim]
        [filter_attack]
            name=faerie fire
        [/filter_attack]
        {MISSILE_FRAME_FAERIE_FIRE}

        start_time=-450
        {SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-faeriefire-miss.ogg -450}
        [frame]
            image="units/fae/yumi.png"
            halo=halo/elven/faerie-fire-halo[1~7].png:75
            halo_x,halo_y=0,0
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=void assault
        [/filter_attack]

        {MISSILE_FRAME_SHADOW_WAVE}

        start_time=-350
        [frame]
            duration=100
            image="units/fae/yumi.png"
            halo=halo/elven/faerie-fire-halo[1~7].png:75
            halo_x,halo_y=0,0
            sound=shaxthal-energy-prelude.ogg
        [/frame]
        [frame]
            duration=300
            image="units/fae/yumi.png"
            halo=halo/elven/faerie-fire-halo[1~7].png:75
            halo_x,halo_y=0,0
            sound=shaxthal-energy-fire.ogg
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=faerie touch
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/fae/yumi.png:520"
        [/frame]

    [/attack_anim]
    [animation]
        apply_to=pre_teleport
        start_time=-600
        alpha="1.0~0.2"
        blend_ratio="0.0~1.0:400,1.0:200"
        blend_color=140,60,255
        [frame]
            duration=600
            image=units/fae/yumi.png
        [/frame]

        halo_start_time=-600
        halo_auto_vflip=no
        halo_halo_mod="~CS(-32,-128,0)~O(0.8)"
        halo_halo_y="0~14"

        [halo_frame]
			halo="halo/elven/druid-healing[1~5].png:80,halo/elven/druid-healing6.png~O(0.75):80,halo/elven/druid-healing7.png~O(0.5):80,halo/elven/druid-healing8.png~O(0.25):80"
		[/halo_frame]
    [/animation]

    [animation]
        apply_to=post_teleport
        start_time=-600
        alpha="0.2~1.0"
        blend_ratio="1.0:200,1.0~0.0:400"
        blend_color=140,60,255
        [frame]
            duration=600
            image=units/fae/yumi.png
        [/frame]

        halo_start_time=-500
        halo_auto_vflip=no
        halo_halo_mod="~CS(-32,-128,0)~O(0.8)"
        halo_halo_y="-4~10"

        [halo_frame]
			halo="halo/elven/druid-healing[1~5].png:80,halo/elven/druid-healing6.png~O(0.75):80,halo/elven/druid-healing7.png~O(0.5):80,halo/elven/druid-healing8.png~O(0.25):80"
		[/halo_frame]
    [/animation]
#enddef

[unit_type]
    {YUMI_BASE}
    hitpoints=27
    experience=70
    level=3

    ########### level 3 ###########
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF3
        inherit=no
        level=3
        hitpoints=27
        experience=70
        name= _ "Dusk Fae"
        {YUMI_MELEE DF3MELEE}
        {YUMI_VOID DF3VOID}
        {ARCANEFIRE DF3FIRE}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF3FIRE
        inherit=no
        level=3
        hitpoints=27
        experience=110
        name= _ "Dusk Fae"
        {YUMI_VOID DF4}
        {YUMI_MELEE DF4}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF3VOID
        inherit=no
        level=3
        hitpoints=27
        experience=110
        name= _ "Dusk Fae"
        {YUMI_MELEE DF4}
        {ARCANEFIRE DF4}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF3MELEE
        inherit=no
        level=3
        hitpoints=27
        experience=110
        name= _ "Dusk Fae"
        {YUMI_VOID DF4}
        {ARCANEFIRE DF4}
    [/variation]
    ###############################
    ########### level 4 ###########
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4
        inherit=no
        level=4
        hitpoints=27
        experience=150
        name= _ "Eventide Nymph"
        {RANGE_RESIST DF4RESIST}
        {MELEE_RESIST DF4RESIST}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4RESIST
        inherit=no
        level=4
        hitpoints=27
        experience=190
        name= _ "Eventide Nymph"
        {DUSK_NIGHT_HUNTER DF4HUNTER}
        {DUSK_VOID_WARDEN DF4WARDEN}
        {DUSK_ETHEREAL_STORM DF4STORM}
        {YUMI_VOID DF4ABILITIES}
        {ARCANEFIRE DF4ABILITIES}
    [/variation]
    ###############################
    ########### level 4-3 ###########
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4ABILITIES
        inherit=no
        level=4
        hitpoints=27
        experience=230
        name= _ "Eventide Nymph"
        {DUSK_NIGHT_HUNTER DF4FINALHUNTER}
        {DUSK_VOID_WARDEN DF4FINALWARDEN}
        {DUSK_ETHEREAL_STORM DF4FINALSTORM}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4HUNTER
        inherit=no
        level=4
        hitpoints=27
        experience=230
        name= _ "Eventide Nymph"
        {DUSK_VOID_WARDEN DF4FINAL}
        {DUSK_ETHEREAL_STORM DF4FINAL}
        {YUMI_MELEE DF4FINALHUNTER}
        {YUMI_VOID DF4FINALHUNTER}
        {ARCANEFIRE DF4FINALHUNTER}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4WARDEN
        inherit=no
        level=4
        hitpoints=27
        experience=230
        name= _ "Eventide Nymph"
        {DUSK_NIGHT_HUNTER DF4FINAL}
        {DUSK_ETHEREAL_STORM DF4FINAL}
        {YUMI_MELEE DF4FINALWARDEN}
        {YUMI_VOID DF4FINALWARDEN}
        {ARCANEFIRE DF4FINALWARDEN}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4STORM
        inherit=no
        level=4
        hitpoints=27
        experience=230
        name= _ "Eventide Nymph"
        {DUSK_VOID_WARDEN DF4FINAL}
        {DUSK_NIGHT_HUNTER DF4FINAL}
        {YUMI_MELEE DF4FINALSTORM}
        {YUMI_VOID DF4FINALSTORM}
        {ARCANEFIRE DF4FINALSTORM}
		{YUMI_STORM DF4FINALSTORM}
    [/variation]
    ###############################
    ########### level 4-4 ###########
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4FINAL
        inherit=no
        level=4
        hitpoints=27
        experience=270
        name= _ "Eventide Nymph"
        {DUSK_MELEE_DOUBLE DF5}
        {DUSK_VOID_DOUBLE DF5}
        {DUSK_FIRE_DOUBLE DF5}
        {YUMI_STORM_DOUBLE DF5}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4FINALHUNTER
        inherit=no
        level=4
        hitpoints=27
        experience=270
        name= _ "Eventide Nymph"
        {DUSK_VOID_WARDEN DF5}
        {DUSK_ETHEREAL_STORM DF5}
        {DUSK_MELEE_DOUBLE DF5}
        {DUSK_VOID_DOUBLE DF5}
        {DUSK_FIRE_DOUBLE DF5}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4FINALWARDEN
        inherit=no
        level=4
        hitpoints=27
        experience=270
        name= _ "Eventide Nymph"
        {DUSK_NIGHT_HUNTER DF5}
        {DUSK_ETHEREAL_STORM DF5}
        {DUSK_MELEE_DOUBLE DF5}
        {DUSK_VOID_DOUBLE DF5}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF4FINALSTORM
        inherit=no
        level=4
        hitpoints=27
        experience=270
        name= _ "Eventide Nymph"
        {DUSK_VOID_WARDEN DF5}
        {DUSK_NIGHT_HUNTER DF5}
        {DUSK_MELEE_DOUBLE DF5}
        {DUSK_VOID_DOUBLE DF5}
        {DUSK_FIRE_DOUBLE DF5}
		{YUMI_STORM_DOUBLE DF5}
    [/variation]
    ###############################
    ########### level 5 ###########
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF5
        inherit=no
        level=5
        hitpoints=27
        experience=370
        name= _ "Void Angel"
        {DRAIN_SPECIAL DF5FINAL}
        {ECLIPSE_SPECIAL DF5FINAL}
    [/variation]
    [variation]
        {YUMI_BASE}
        hide_help=yes
        variation_id=DF5FINAL
        inherit=no
        level=5
        hitpoints=27
        experience=250
        name= _ "Void Angel"
        {AMLA_ARCANEFAE}
    [/variation]
[/unit_type]


#textdomain wesnoth-Era_of_Chaos

[unit_type]
    id=Night Nymph Fake
    name= _ "female^Night Nymph"
    race=faerie
    gender=female
    image="units/faeries-other/night-nymph-ghost.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    {MAGENTA_IS_THE_TEAM_COLOR}
    ellipse="misc/ellipse"
    hitpoints=45
    movement_type=faerie
    [resistance]
        fire=100
        cold=80
    [/resistance]
    movement=6
    level=2
    alignment=chaotic
    experience=96
    advances_to=null
    {AMLA_DEFAULT}
	{TRAIT_SPIRIT}
    cost=46
    usage=archer
    description= _ "It is said that the dark faeries’ secluded lives in hazardous environments has led them to lose any kind of empathy towards those who are not of their kind. Many fables revolve around men who were lured into following these beautiful temptresses to their homes, never to be seen ever again."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MAGICAL}+{SPECIAL_NOTES_ARCANE}+{SPECIAL_NOTES_DRAIN}
    die_sound=wail.wav
    {DEFENSE_ANIM_RANGE "units/faeries-other/night-nymph-ghost.png" "units/faeries-other/night-nymph-ghost.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries-other/night-nymph-ghost.png" "units/faeries-other/night-nymph-ghost.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [attack]
        name=faerie touch
        description= _ "faerie touch"
        icon=attacks/touch-faerie.png
        type=impact
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
        range=melee
        damage=7
        number=3
    [/attack]
    [attack]
        name=forest chill
        description=_"forest chill"
        type=cold
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=13
        number=2
        icon=attacks/forest-chill.png
    [/attack]
    [attack]
        name=shadow wave
        description= _ "shadow wave"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=9
        number=3
        icon=attacks/dark-missile.png
    [/attack]

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

        [frame]
            image="units/faeries-other/night-nymph-ghost.png:220"
        [/frame]
        [frame]
            image="units/faeries-other/night-nymph-ghost.png"
            halo="halo/elven/shaman-heal-halo-[4~7].png~G(-50):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=forest chill
        [/filter_attack]
        {MISSILE_FRAME_ICE}
        {HALO_FRAME_SAURIAN}
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=shadow wave
        [/filter_attack]
        start_time=-300
        missile_start_time=-50

        [missile_frame]
            duration=200
            image="projectiles/darkmissile-n.png"
            image_diagonal="projectiles/darkmissile-ne.png"
        [/missile_frame]

        [frame]
            image="units/faeries-other/night-nymph-ghost.png"
            halo="halo/undead/dark-magic-[1~6].png:50"
            halo_x,halo_y=10,15
        [/frame]

        [frame]
            image="units/faeries-other/night-nymph-ghost.png:100"
        [/frame]

        {SOUND:HIT_AND_MISS magic-dark.ogg magic-dark-miss.ogg -50}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Fire Faerie Fake
    name= _ "Fire Faerie"
    race=faerie
    gender=female
    image="units/faeries-other/fire-ghost.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    hitpoints=38
    movement_type=faerie
    [resistance]
        fire=80
        cold=100
    [/resistance]
    movement=5
    level=2
    alignment=lawful
    experience=85
    advances_to=null
    {AMLA_DEFAULT}
	{TRAIT_SPIRIT}
    cost=42
    usage=archer
    description= _ "Forest faeries rarely take part in wars and conflicts, preferring instead to dance and frolic in their forest homes. They will, however, defend these to the death; to this end, the forest elves have proven allies of convenience. The elves themselves have long had respect for those with a close affinity with the Arcane Flame. It is due to this close relationship that faeries will sometimes be found by the elves’ side in times of great need.

The more experienced faeries possess an even greater mastery of the fire element, allowing them to hurl balls of raging fire at their enemies, or to ignite them with a single touch. Some are even said to eventually burn away their corporeal forms entirely, becoming a spirit born of the rage of the Flame."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MAGICAL}
    die_sound=wail.wav
    {DEFENSE_ANIM_RANGE "units/faeries-other/fire-ghost.png" "units/faeries-other/fire-ghost.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries-other/fire-ghost.png" "units/faeries-other/fire-ghost.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [attack]
        name=fire aura
        description= _ "fire aura"
        icon=attacks/aura-fire.png
        type=fire
        range=melee
        damage=6
        number=4
    [/attack]
    [attack]
        name=mystic fire
        description= _ "mystic fire"
        icon=attacks/fireball.png
        type=fire
        range=ranged
        damage=7
        number=5
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fire aura
        [/filter_attack]
        {MELEE_FRAME_FIRE_AURA "units/faeries-other/fire-ghost.png" "units/faeries-other/fire-ghost.png"}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=mystic fire
        [/filter_attack]

        start_time=-300
        [frame]
            image="units/faeries-other/fire-ghost.png:350"
        [/frame]

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

        {SOUND:HIT_AND_MISS flame-big.ogg flame-big-miss.ogg -300}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Forest Nymph Fake
    name= _ "Forest Nymph"
    race=faerie
    gender=female
    image="units/faeries-other/healer/forest-nymph-ghost.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    profile="portraits/elves/druid.png"
    hitpoints=45
    movement_type=faerie
    movement=6
    level=2
    alignment=neutral
    experience=93
    advances_to=null
    {AMLA_DEFAULT}
	{TRAIT_SPIRIT}
    cost=33
    usage=archer
    description= _ "The idyll, pacifistic disposition of the faerie that inhabit the forests lends them the ability to better understand the surge and ebb of nature's energies. Their power is not that of fiery destruction, nor frigid winter, but involves the aspect of life itself, the mysterious force that binds soul to body and heart and mind to physical form. It is this ability that allows them to heal almost any wound, even those that are normally considered fatal by healers of other races."
    die_sound=wail.wav
    {DEFENSE_ANIM_RANGE "units/faeries-other/healer/forest-nymph-ghost.png" "units/faeries-other/healer/forest-nymph-ghost.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries-other/healer/forest-nymph-ghost.png" "units/faeries-other/healer/forest-nymph-ghost.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [attack]
        name=faerie touch
        description= _ "faerie touch"
        icon=attacks/touch-faerie.png
        type=impact
        range=melee
        damage=5
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=ensnare
        description= _ "ensnare"
        icon=attacks/entangle.png
        type=impact
        range=ranged
        damage=9
        number=3
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=faerie touch
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries-other/healer/forest-nymph-ghost.png:520"
        [/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]
            offset=1.0
            duration=150
            image="projectiles/entangle.png"
            image_diagonal="projectiles/entangle.png"
        [/missile_frame]
        start_time=-450
        [frame]
            image="units/faeries-other/healer/forest-nymph-ghost.png:350"
            halo=halo/elven/nature-halo[1~6].png:75,halo/elven/nature-halo[7~8].png:50
            halo_x,halo_y=0,-12
        [/frame]
        attack_sound_start_time=-75
        [attack_sound_frame]
            sound=entangle.wav
        [/attack_sound_frame]
        {SOUND:SLOW}
        [frame]
            image="units/faeries-other/healer/forest-nymph-ghost.png:350"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=GNS_Dreamcatcher
    name= _ "Dreamcatcher"
    race=mechanical
    image="items-new/dreamcatcher4.png"
	image_icon="items-new/dreamcatcher4.png"
    ellipse=none
    hitpoints=1000
    movement_type=null
    movement=1
    level=0
    alignment=neutral
    advances_to=null
    cost=1
    usage=null
    hide_help=true
    description= _ ""
    {DEFENSE_ANIM "items-new/dreamcatcher4.png" "items-new/dreamcatcher4.png" gate.ogg}
    die_sound=gate-fall.ogg
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Fake Dreamwalker
    name= _ "Dreamwalker"
    race=demon
    gender=female
    image="units/demons/blue/dreamwalker.png"
    hitpoints=1000
    movement_type=demonfoot
    movement=6
    experience=100
    level=2
    alignment=chaotic
    advances_to=null
	{AMLA_DEFAULT}
    cost=27
    usage=mixed fighter
    [resistance]
        blade=40
        impact=40
        pierce=40
        cold=110
        fire=110
        arcane=100
    [/resistance]
    [movement_costs]
        deep_water=2
        shallow_water=1
        frozen=1
    [/movement_costs]
    [defense]
        deep_water=60
        shallow_water=60
        frozen=50
    [/defense]
    [abilities]
        {ABILITY_ENERVATE20}
    [/abilities]
    description= _ "."
    die_sound=wail-long.wav
    [attack]
        name=lacerate
        description= _ "lacerate"
        icon="attacks/claws-undead.png"
        type=blade
        range=melee
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
        damage=1
        number=1
    [/attack]
    [attack]
        name=dreamweave
        description= _ "dreamweave"
        type=cold
        range=ranged
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
        damage=1
        number=1
        icon=attacks/iceball.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=lacerate
        [/filter_attack]
        start_time=-600
        offset=0.0~1.2:600,1.2~0.0:350
        [frame]
            image="units/demons/blue/dreamwalker-melee1.png:150"
        [/frame]
        [frame]
            image="units/demons/blue/dreamwalker-melee2.png:300"
        [/frame]
        [frame]
            image="units/demons/blue/dreamwalker-melee3.png:50"
        [/frame]
        [frame]
            image="units/demons/blue/dreamwalker-melee4.png:100"
            alpha=1~0:100
        [/frame]
        {SOUND:HIT_AND_MISS "claws.ogg" {SOUND_LIST:MISS} -100}
        [frame]
            image="units/demons/blue/dreamwalker-melee4.png:150"
            alpha=0~1:150
        [/frame]
        [frame]
            image="units/demons/blue/dreamwalker-melee5.png:200"
        [/frame]
        [frame]
            image="units/demons/blue/dreamwalker.png:10"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=hallucination
        [/filter_attack]
        start_time=-350
        {MISSILE_FRAME_INFERNAL_CHILL}
        [frame]
            duration=50
            image="units/demons/blue/dreamwalker-ranged1.png"
            halo=halo/saurian-magic-halo-1.png
        [/frame]
        [frame]
            duration=60
            image="units/demons/blue/dreamwalker-ranged2.png"
            halo=halo/saurian-magic-halo-2.png
            sound=magicmissile.wav
        [/frame]
        [frame]
            duration=70
            image="units/demons/blue/dreamwalker-ranged2.png"
            halo=halo/saurian-magic-halo-3.png
        [/frame]
        [frame]
            duration=80
            image="units/demons/blue/dreamwalker-ranged3.png"
            halo=halo/saurian-magic-halo-4.png
        [/frame]
        [frame]
            duration=90
            image="units/demons/blue/dreamwalker-ranged3.png"
            halo=halo/saurian-magic-halo-5.png
        [/frame]
        [frame]
            duration=100
            image="units/demons/blue/dreamwalker-ranged2.png"
            halo=halo/saurian-magic-halo-6.png
        [/frame]
        [frame]
            duration=100
            image="units/demons/blue/dreamwalker-ranged1.png"
            halo=halo/saurian-magic-halo-7.png
        [/frame]
    [/attack_anim]
    [defend]
        start_time=-200
        [if]
            hits=hit
            offset=0.0~-0.05:200,-0.05~0.0:200
            alpha=0.8~0.5:200,0.5~0.8:200

            hit_sound_start_time=-25
            [hit_sound_frame]
                sound=wail-sml.wav
            [/hit_sound_frame]
        [/if]
        [else]
            hits=kill
            offset=0.0~-0.05:200,-0.05~0.0:200
            alpha=0.8~0.5:200,0.5~0.8:200
        [/else]
        [else]
            hits=miss
            offset=0.0~-0.1:200,-0.1~0.0:200
            alpha=0.8~0.25:200,0.25~0.8:200
        [/else]
        [frame]
            image=units/demons/blue/dreamwalker.png:1,units/demons/blue/dreamwalker-defend.png:325,units/demons/blue/dreamwalker.png:1
        [/frame]
    [/defend]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Fake Nightmare
    name= _ "Nightmare"
    race=demon
    gender=female
    image="units/demons/blue/nightmare.png"
    hitpoints=1000
    movement_type=demonfly
    movement=3
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=55
    usage=scout
    [abilities]
        {ABILITY_INCORPOREAL}
    [/abilities]
    description= _ "."
    die_sound=wail-long.wav
    [resistance]
        blade=30
        impact=30
        pierce=30
        cold=100
        fire=100
        arcane=110
    [/resistance]
    [attack]
        name=infest
        description= _ "infest"
        icon="attacks/wail.png"
        type=cold
        range=melee
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
        damage=1
        number=3
    [/attack]
    [attack]
        name=hallucination
        description= _ "hallucination"
        type=cold
        range=ranged
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
        damage=1
        number=4
        icon=attacks/iceball.png
    [/attack]
    [attack]
        name=nightmare
        description= _ "nightmare"
        type=blade
        range=ranged
        [specials]
            {WEAPON_SPECIAL_TERROR}
        [/specials]
        damage=1
        number=5
        icon=attacks/chakram.png
    [/attack]
    {GNS_INCORPOREAL "Demon Nightmare"}
    [attack_anim]
        [filter_attack]
            name=infest
        [/filter_attack]
        start_time=-600
        offset=0.0~-0.3:300,-0.3~1.2:300,1.2~0.0:250
        [frame]
            image="units/demons/blue/nightmare-melee[1~2].png:150"
        [/frame]
        [frame]
            image="units/demons/blue/nightmare-melee3.png:50"
        [/frame]
        [frame]
            image="units/demons/blue/nightmare-melee4.png:150"
            alpha=1~0:200
        [/frame]
        {SOUND:HIT_AND_MISS "magic-dark-big.ogg" "magic-dark-big-miss.ogg" -75}
        [frame]
            image="units/demons/blue/nightmare-melee4.png:50"
            alpha=0:50
        [/frame]
        [frame]
            image="units/demons/blue/nightmare-melee[4~3].png:50"
            alpha=0~1:100
        [/frame]
        [frame]
            image="units/demons/blue/nightmare-melee1.png:100"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=hallucination
        [/filter_attack]
        {MISSILE_FRAME_ICE}
        start_time=-350
        [frame]
            image="units/demons/blue/nightmare-ranged[1~3].png:100"
        [/frame]
        [frame]
            image="units/demons/blue/nightmare-ranged3.png:100"
        [/frame]
        [frame]
            image="units/demons/blue/nightmare-ranged[3~1].png:50"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=nightmare
        [/filter_attack]
        start_time=-350
        [missile_frame]
            duration=200
            image="projectiles/chakram.png"
            image_diagonal="projectiles/chakram.png"
        [/missile_frame]
        {SOUND:HIT_AND_MISS throwing-knife.ogg throwing-knife-miss.ogg -150}
        [frame]
            image="units/demons/blue/nightmare-ranged[1~3].png:100"
        [/frame]
        [frame]
            image="units/demons/blue/nightmare-ranged3.png:100"
        [/frame]
        [frame]
            image="units/demons/blue/nightmare-ranged[3~1].png:50"
        [/frame]
    [/attack_anim]
    [defend]
        start_time=-126
        [if]
            hits=hit
            offset=0.0~-0.05:126,-0.05~0.0:126
            alpha=0.8~0.5:126,0.5~0.8:126

            hit_sound_start_time=-25
            [hit_sound_frame]
                sound=wail-sml.wav
            [/hit_sound_frame]
        [/if]
        [else]
            hits=kill
            offset=0.0~-0.05:126,-0.05~0.0:126
            alpha=0.8~0.5:126,0.5~0.8:126
        [/else]
        [else]
            hits=miss
            offset=0.0~-0.1:126,-0.1~0.0:126
            alpha=0.8~0.25:126,0.25~0.8:126
        [/else]
        [frame]
            image=units/demons/blue/nightmare.png:1,units/demons/blue/nightmare-melee2.png:250,units/demons/blue/nightmare.png:1
        [/frame]
    [/defend]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=GNS_Ice_Shard
    name= _ "Ice Shard"
    race=mechanical
    image="items-new/iceshard.png"
	image_icon="items-new/iceshard.png"
    ellipse=none
    hitpoints=1000
    movement_type=null
    movement=1
    level=0
    alignment=neutral
    advances_to=null
    cost=1
    usage=null
    hide_help=true
    description= _ ""
    {DEFENSE_ANIM "items-new/iceshard.png" "items-new/iceshard.png" gate.ogg}
    die_sound=gate-fall.ogg
	[variation]
		variation_id=iceshard_dark
		inherit=yes
		image="items-new/iceshard-dark.png"
		image_icon="items-new/iceshard-dark.png"
		{DEFENSE_ANIM "items-new/iceshard-dark.png" "items-new/iceshard-dark.png" gate.ogg}
	[/variation]
	[variation]
		variation_id=iceshard_light
		inherit=yes
		image="items-new/iceshard-light.png"
		image_icon="items-new/iceshard-light.png"
		{DEFENSE_ANIM "items-new/iceshard-light.png" "items-new/iceshard-light.png" gate.ogg}
	[/variation]
	[variation]
		variation_id=iceshard_red
		inherit=yes
		image="items-new/iceshard-red.png"
		image_icon="items-new/iceshard-red.png"
		{DEFENSE_ANIM "items-new/iceshard-red.png" "items-new/iceshard-red.png" gate.ogg}
	[/variation]
	[variation]
		variation_id=iceshard_violet
		inherit=yes
		image="items-new/iceshard-violet.png"
		image_icon="items-new/iceshard-violet.png"
		{DEFENSE_ANIM "items-new/iceshard-violet.png" "items-new/iceshard-violet.png" gate.ogg}
	[/variation]
	[variation]
		variation_id=iceshard_black
		inherit=yes
		image="items-new/iceshard-black.png"
		image_icon="items-new/iceshard-black.png"
		{DEFENSE_ANIM "items-new/iceshard-black.png" "items-new/iceshard-black.png" gate.ogg}
	[/variation]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=GNS_Mirror
    name= _ "Mirror"
    race=mechanical
    image="items/mirror.png"
	image_icon="items/mirror.png"
    ellipse=none
    hitpoints=1000
    movement_type=fakefly
    movement=0
    level=0
    alignment=neutral
    advances_to=null
    cost=1
    usage=null
    hide_help=true
    description= _ ""
    {DEFENSE_ANIM "items/mirror.png" "items/mirror.png" gate.ogg}
    die_sound=gate-fall.ogg
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=GNS_Monolith
    name= _ "Monolith"
    race=mechanical
    image="buildings/monolith.png"
	image_icon="buildings/monolith.png~CROP(0,36,72,72)"
    bar_offset_y=0
    ellipse=none
    hitpoints=1000
    movement_type=null
    movement=1
    level=0
    alignment=neutral
    advances_to=null
    cost=1
    usage=null
    hide_help=true
    description= _ ""
    {DEFENSE_ANIM "buildings/monolith.png" "buildings/monolith.png" gate.ogg}
    die_sound=gate-fall.ogg
    [abilities]
        {ABILITY_BLACK_BODY}
    [/abilities]

    {GNS_BLACK_BODY "GNS_Monolith"}
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Halfling Distortionist
    name= _ "Distortionist"
    race=halfling
    gender=male,female
    image="units/halflings/distortionist.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=24
    movement_type=halflingfoot
    movement=5
    experience=50
    level=1
    alignment=neutral
    advances_to=Halfling Weaver,Halfling Obsidian Mage
    cost=18
    usage=mixed fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/halflings/distortionist.png" "units/halflings/distortionist.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=distort
        description= _ "distort"
        type=arcane
        range=ranged
        damage=8
        number=3
        [specials]
            {WEAPON_SPECIAL_DISTORT}
        [/specials]
        icon=attacks/magic-missile.png
    [/attack]

    [attack_anim]
        [filter_attack]
            name=distort
        [/filter_attack]

        offset=0

        {MAGIC_MISSILE 11 -20}
        {MAGIC_MISSILE_STAFF_FLARE -750 600 11 -20}

        start_time=-800
        [frame]
            image="units/halflings/distortionist.png"
        [/frame]
        {SOUND:HIT_AND_MISS magic-missile-[1~3].ogg magic-missile-[1~3]-miss.ogg -350}
    [/attack_anim]

    [female]
        name= _ "female^Distortionist"
        gender=female
        image="units/halflings/distortionist-female.png"
        advances_to=Halfling Weaver,Halfling Hoarfrost Mage
        die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
        {DEFENSE_ANIM "units/halflings/distortionist-female.png" "units/halflings/distortionist-female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
        [attack_anim]
            [filter_attack]
                name=distort
            [/filter_attack]
            [frame]
                image="units/halflings/distortionist-female.png"
            [/frame]
        [/attack_anim]
    [/female]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Halfling Hoarfrost Mage
    name= _ "Hoarfrost Mage"
    race=halfling
    gender=female
    image="units/halflings/hoarfrost.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=24
    movement_type=halflingfoot
    movement=5
    experience=50
    level=1
    alignment=neutral
    advances_to=Halfling hoarfrost
    cost=18
    usage=mixed fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
    {DEFENSE_ANIM "units/halflings/hoarfrost.png" "units/halflings/hoarfrost.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
    [attack]
        name=distort
        description= _ "distort"
        type=arcane
        range=ranged
        damage=8
        number=3
        [specials]
            {WEAPON_SPECIAL_DISTORT}
        [/specials]
        icon=attacks/magic-missile.png
    [/attack]

    [attack_anim]
        [filter_attack]
            name=distort
        [/filter_attack]

        offset=0

        {MAGIC_MISSILE 11 -20}
        {MAGIC_MISSILE_STAFF_FLARE -750 600 11 -20}

        start_time=-800
        [frame]
            image="units/halflings/hoarfrost.png"
        [/frame]
        {SOUND:HIT_AND_MISS magic-missile-[1~3].ogg magic-missile-[1~3]-miss.ogg -350}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Halfling Hunter
    name= _ "Hunter"
    race=halfling
    gender=male,female
    image="units/halflings/hunter.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=40
    movement_type=halflingfoot
    movement=5
    experience=91
    level=2
    alignment=neutral
    advances_to=Halfling Ranger
    cost=27
    usage=mixed fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/halflings/hunter.png" "units/halflings/hunter.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=spear
        description= _ "spear"
        icon="attacks/spear.png"
        type=pierce
        range=melee
        damage=6
        number=3
    [/attack]
    [attack]
        name=javelin
        description= _ "javelin"
        type=pierce
        range=ranged
        damage=7
        number=4
        [specials]
            {WEAPON_SPECIAL_HARRY}
        [/specials]
		icon="attacks/javelin-human.png"
    [/attack]

    [attack_anim]
        [filter_attack]
            name=spear
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/halflings/hunter.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/halflings/hunter.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=200
            image="units/halflings/hunter.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        missile_start_time=0
        [missile_frame]
            duration=150
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        start_time=-250
        [frame]
            image="units/halflings/hunter.png"
        [/frame]
        attack_sound_start_time=-50
        [attack_sound_frame]
            duration=100
            sound={SOUND_LIST:THROW}
        [/attack_sound_frame]
        [if]
            hits=yes
            [attack_sound_frame]
                sound=spear.ogg
            [/attack_sound_frame]
        [/if]
    [/attack_anim]

    [female]
        name= _ "female^Hunter"
        gender=female
        image="units/halflings/hunter-female.png"
        die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
        {DEFENSE_ANIM "units/halflings/hunter-female.png" "units/halflings/hunter-female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
        [attack_anim]
            [filter_attack]
                name=spear
            [/filter_attack]
            [if]
                [frame]
                    image="units/halflings/hunter-female.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/halflings/hunter-female.png"
                [/frame]
            [/else]
            [frame]
                image="units/halflings/hunter-female.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=javelin
            [/filter_attack]
            [frame]
                image="units/halflings/hunter-female.png"
            [/frame]
        [/attack_anim]
    [/female]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Halfling Impaler
    name= _ "Impaler"
    race=halfling
    gender=male,female
    image="units/halflings/impaler.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=57
    movement_type=halflingfoot
    movement=5
    experience=150
    level=3
    alignment=neutral
    advances_to=null
    {AMLA_HALFLING_FIGHTER_HITPOINTS}
    {AMLA_HALFLING_FIGHTER_MELEE}
    cost=48
    usage=mixed fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/halflings/impaler.png" "units/halflings/impaler.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=glaive
        description= _ "glaive"
        icon="attacks/glaive.png"
        type=pierce
        range=melee
        damage=13
        number=3
        [specials]
            {WEAPON_SPECIAL_IMPALE50}
        [/specials]
    [/attack]
    [attack]
        name=glaive
        description= _ "glaive"
        icon="attacks/glaive.png"
        type=blade
        range=melee
        damage=21
        number=2
    [/attack]

    [attack_anim]
        [filter_attack]
            name=glaive
            type=pierce
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/halflings/impaler.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/halflings/impaler.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=200
            image="units/halflings/impaler.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=glaive
            type=blade
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/halflings/impaler.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/halflings/impaler.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=200
            image="units/halflings/impaler.png"
        [/frame]
    [/attack_anim]
    [female]
        name= _ "female^Impaler"
        gender=female
        image="units/halflings/impaler-female.png"
        die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
        {DEFENSE_ANIM "units/halflings/impaler-female.png" "units/halflings/impaler-female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
        [attack_anim]
            [filter_attack]
                name=glaive
                type=pierce
            [/filter_attack]
            [if]
                [frame]
                    image="units/halflings/impaler-female.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/halflings/impaler-female.png"
                [/frame]
            [/else]
            [frame]
                image="units/halflings/impaler-female.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=glaive
                type=blade
            [/filter_attack]
            [if]
                [frame]
                    image="units/halflings/impaler-female.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/halflings/impaler-female.png"
                [/frame]
            [/else]
            [frame]
                image="units/halflings/impaler-female.png"
            [/frame]
        [/attack_anim]
    [/female]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Halfling Obsidian Mage
    name= _ "Obsidian Mage"
    race=halfling
    gender=male
    image="units/halflings/obsidian.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=24
    movement_type=halflingfoot
    movement=5
    experience=50
    level=1
    alignment=neutral
    advances_to=Halfling obsidian
    cost=18
    usage=mixed fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/halflings/obsidian.png" "units/halflings/obsidian.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=distort
        description= _ "distort"
        type=arcane
        range=ranged
        damage=8
        number=3
        [specials]
            {WEAPON_SPECIAL_DISTORT}
        [/specials]
        icon=attacks/magic-missile.png
    [/attack]

    [attack_anim]
        [filter_attack]
            name=distort
        [/filter_attack]

        offset=0

        {MAGIC_MISSILE 11 -20}
        {MAGIC_MISSILE_STAFF_FLARE -750 600 11 -20}

        start_time=-800
        [frame]
            image="units/halflings/obsidian.png"
        [/frame]
        {SOUND:HIT_AND_MISS magic-missile-[1~3].ogg magic-missile-[1~3]-miss.ogg -350}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Halfling Piercer
    name= _ "Piercer"
    race=halfling
    gender=male,female
    image="units/halflings/piercer.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=42
    movement_type=halflingfoot
    movement=5
    experience=84
    level=2
    alignment=neutral
    advances_to=Halfling Impaler
    cost=26
    usage=mixed fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/halflings/piercer.png" "units/halflings/piercer.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=glaive
        description= _ "glaive"
        icon="attacks/glaive.png"
        type=pierce
        range=melee
        damage=10
        number=3
        [specials]
            {WEAPON_SPECIAL_IMPALE25}
        [/specials]
    [/attack]
    [attack]
        name=glaive
        description= _ "glaive"
        icon="attacks/glaive.png"
        type=blade
        range=melee
        damage=15
        number=2
    [/attack]

    [attack_anim]
        [filter_attack]
            name=glaive
            type=pierce
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/halflings/piercer.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/halflings/piercer.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=200
            image="units/halflings/piercer.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=glaive
            type=blade
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/halflings/piercer.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/halflings/piercer.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=200
            image="units/halflings/piercer.png"
        [/frame]
    [/attack_anim]
    [female]
        name= _ "female^Piercer"
        gender=female
        image="units/halflings/piercer-female.png"
        die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
        {DEFENSE_ANIM "units/halflings/piercer-female.png" "units/halflings/piercer-female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
        [attack_anim]
            [filter_attack]
                name=glaive
                type=pierce
            [/filter_attack]
            [if]
                [frame]
                    image="units/halflings/piercer-female.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/halflings/piercer-female.png"
                [/frame]
            [/else]
            [frame]
                image="units/halflings/piercer-female.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=glaive
                type=blade
            [/filter_attack]
            [if]
                [frame]
                    image="units/halflings/piercer-female.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/halflings/piercer-female.png"
                [/frame]
            [/else]
            [frame]
                image="units/halflings/piercer-female.png"
            [/frame]
        [/attack_anim]
    [/female]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Halfling Ranger
    name= _ "Ranger"
    race=halfling
    gender=male,female
    image="units/halflings/ranger.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=53
    movement_type=halflingfoot
    movement=5
    experience=150
    level=3
    alignment=neutral
    advances_to=null
    {AMLA_HALFLING_FIGHTER_RANGED}
    {AMLA_HALFLING_FIGHTER_MELEE}
    cost=51
    usage=mixed fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/halflings/ranger.png" "units/halflings/ranger.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=spear
        description= _ "spear"
        icon="attacks/spear.png"
        type=pierce
        range=melee
        damage=7
        number=3
    [/attack]
    [attack]
        name=javelin
        description= _ "javelin"
        type=pierce
        range=ranged
        damage=8
        number=5
        [specials]
            {WEAPON_SPECIAL_HARRY}
        [/specials]
		icon="attacks/javelin-human.png"
    [/attack]

    [attack_anim]
        [filter_attack]
            name=spear
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/halflings/ranger.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/halflings/ranger.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=200
            image="units/halflings/ranger.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        missile_start_time=0
        [missile_frame]
            duration=150
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        start_time=-250
        [frame]
            image="units/halflings/ranger.png"
        [/frame]
        attack_sound_start_time=-50
        [attack_sound_frame]
            duration=100
            sound={SOUND_LIST:THROW}
        [/attack_sound_frame]
        [if]
            hits=yes
            [attack_sound_frame]
                sound=spear.ogg
            [/attack_sound_frame]
        [/if]
    [/attack_anim]

    [female]
        name= _ "female^Ranger"
        gender=female
        image="units/halflings/ranger-female.png"
        die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
        {DEFENSE_ANIM "units/halflings/ranger-female.png" "units/halflings/ranger-female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
        [attack_anim]
            [filter_attack]
                name=spear
            [/filter_attack]
            [if]
                [frame]
                    image="units/halflings/ranger-female.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/halflings/ranger-female.png"
                [/frame]
            [/else]
            [frame]
                image="units/halflings/ranger-female.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=javelin
            [/filter_attack]
            [frame]
                image="units/halflings/ranger-female.png"
            [/frame]
        [/attack_anim]
    [/female]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Halfling Spearer
    name= _ "Spearer"
    race=halfling
    gender=male,female
    image="units/halflings/spearer.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=28
    movement_type=halflingfoot
    movement=5
    experience=44
    level=1
    alignment=neutral
    advances_to=Halfling Piercer,Halfling Hunter
    cost=14
    usage=mixed fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/halflings/spearer.png" "units/halflings/spearer.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=spear
        description= _ "spear"
        icon="attacks/spear.png"
        type=pierce
        range=melee
        damage=9
        number=2
    [/attack]
    [attack]
        name=javelin
        description= _ "javelin"
        type=pierce
        range=ranged
        damage=6
        number=2
		icon="attacks/javelin-human.png"
    [/attack]

    [attack_anim]
        [filter_attack]
            name=spear
        [/filter_attack]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/halflings/spearer.png"
                sound=spear.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/halflings/spearer.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=200
            image="units/halflings/spearer.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        missile_start_time=0
        [missile_frame]
            duration=150
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        start_time=-250
        [frame]
            image="units/halflings/spearer.png"
        [/frame]
        attack_sound_start_time=-50
        [attack_sound_frame]
            duration=100
            sound={SOUND_LIST:THROW}
        [/attack_sound_frame]
        [if]
            hits=yes
            [attack_sound_frame]
                sound=spear.ogg
            [/attack_sound_frame]
        [/if]
    [/attack_anim]

    [female]
        name= _ "female^Spearer"
        gender=female
        image="units/halflings/spearer-female.png"
        die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
        {DEFENSE_ANIM "units/halflings/spearer-female.png" "units/halflings/spearer-female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
        [attack_anim]
            [filter_attack]
                name=spear
            [/filter_attack]
            [if]
                [frame]
                    image="units/halflings/spearer-female.png"
                [/frame]
            [/if]
            [else]
                [frame]
                    image="units/halflings/spearer-female.png"
                [/frame]
            [/else]
            [frame]
                image="units/halflings/spearer-female.png"
            [/frame]
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=javelin
            [/filter_attack]
            [frame]
                image="units/halflings/spearer-female.png"
            [/frame]
        [/attack_anim]
    [/female]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Halfling Weaver
    name= _ "Weaver"
    race=halfling
    gender=male,female
    image="units/halflings/weaver.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=24
    movement_type=halflingfoot
    movement=5
    experience=50
    level=1
    alignment=neutral
    advances_to=Halfling Weaver
    cost=18
    usage=mixed fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/halflings/weaver.png" "units/halflings/weaver.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=distort
        description= _ "distort"
        type=arcane
        range=ranged
        damage=8
        number=3
        [specials]
            {WEAPON_SPECIAL_DISTORT}
        [/specials]
        icon=attacks/magic-missile.png
    [/attack]

    [attack_anim]
        [filter_attack]
            name=distort
        [/filter_attack]

        offset=0

        {MAGIC_MISSILE 11 -20}
        {MAGIC_MISSILE_STAFF_FLARE -750 600 11 -20}

        start_time=-800
        [frame]
            image="units/halflings/weaver.png"
        [/frame]
        {SOUND:HIT_AND_MISS magic-missile-[1~3].ogg magic-missile-[1~3]-miss.ogg -350}
    [/attack_anim]

    [female]
        name= _ "female^Weaver"
        gender=female
        image="units/halflings/weaver-female.png"
        die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
        {DEFENSE_ANIM "units/halflings/weaver-female.png" "units/halflings/weaver-female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
        [attack_anim]
            [filter_attack]
                name=distort
            [/filter_attack]
            [frame]
                image="units/halflings/weaver-female.png"
            [/frame]
        [/attack_anim]
    [/female]
[/unit_type]


#textdomain wesnoth-units
[unit_type]
    id=Eldritch Form
    name= _ "Eldritch Form"
    race=undead
    image="units/undead/ghost-s-2.png"
    profile=portraits/undead/ghost.png
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=10
    movement_type=undeadspirit
    movement=6
    experience=25
    level=0
    alignment=chaotic
    advances_to=null
	{AMLA_DEFAULT}
    cost=21
    usage=scout
    hide_help=true
    description= _ ""
    die_sound=wail-long.wav
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/undead/transparent/ghost.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/undead/transparent/ghost.png"
    [/portrait]
    [defend]
        start_time=-126
        [if]
            hits=hit
            offset=0.0~-0.05:126,-0.05~0.0:126
            alpha=0.8~0.5:126,0.5~0.8:126

            hit_sound_start_time=-25
            [hit_sound_frame]
                sound=wail-sml.wav
            [/hit_sound_frame]
        [/if]
        [else]
            hits=kill
            offset=0.0~-0.05:126,-0.05~0.0:126
            alpha=0.8~0.5:126,0.5~0.8:126
        [/else]
        [else]
            hits=miss
            offset=0.0~-0.1:126,-0.1~0.0:126
            alpha=0.8~0.25:126,0.25~0.8:126
        [/else]
        [if]
            direction=s,se,sw
            [frame]
                image=units/undead/ghost-s-2.png:1,units/undead/ghost-s-attack-1.png:250,units/undead/ghost-s-2.png:1
            [/frame]
        [/if]
        [else]
            direction=n,ne,nw
            [frame]
                image=units/undead/ghost-n-2.png:1,units/undead/ghost-n-attack-1.png:250,units/undead/ghost-n-2.png:1
            [/frame]
        [/else]
    [/defend]
	[defense]
        impassable=50
    [/defense]
    [attack]
        name=touch
        description=_"touch"
        icon=attacks/touch-undead.png
        type=arcane
        range=melee
        damage=5
        number=3
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack]
        name=wail
        description=_"wail"
        type=cold
        range=ranged
        damage=5
        number=3
		[specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=wail
        [/filter_attack]
        {MISSILE_FRAME_WAIL}
        start_time=-200

        [if]
            direction=s,se,sw
            [frame]
                image="units/undead/ghost-s-2.png:25"
            [/frame]
            [frame]
                image="units/undead/ghost-s-attack-[1,2,1].png:[75,150,75]"
            [/frame]
            [frame]
                image="units/undead/ghost-s-2.png:25"
            [/frame]
        [/if]
        [else]
            direction=n,ne,nw
            [frame]
                image="units/undead/ghost-n-2.png:25"
            [/frame]
            [frame]
                image="units/undead/ghost-n-attack-[1,2,1].png:[75,150,75]"
            [/frame]
        [/else]
        attack_sound_start_time=-100
        [attack_sound_frame]
            sound=wail-sml.wav
        [/attack_sound_frame]
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        start_time=-500
        offset=0.0~1.0:425,0.0:225
        alpha=0.8~0.0:425,0.0~0.8:225

        [if]
            direction=s,se,sw
            [frame]
                image="units/undead/ghost-s-2.png:25"
            [/frame]
            [frame]
                image="units/undead/ghost-s-attack-[1~3,2,1].png:[175*2,100,75*2]"
            [/frame]
            [frame]
                image="units/undead/ghost-s-2.png:25"
            [/frame]
        [/if]
        [else]
            direction=n,ne,nw
            [frame]
                image="units/undead/ghost-n-2.png:25"
            [/frame]
            [frame]
                image="units/undead/ghost-n-attack-[1~3,2,1].png:[175*2,100,75*2]"
            [/frame]
            [frame]
                image="units/undead/ghost-n-2.png:25"
            [/frame]
        [/else]

        attack_sound_start_time=-126
        [attack_sound_frame]
            duration=1
        [/attack_sound_frame]
        [attack_sound_frame]
            sound=wail-sml.wav
        [/attack_sound_frame]
    [/attack_anim]

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


#textdomain wesnoth-units
[unit_type]
    id=Manifestation
    name= _ "Manifestation"
    race=undead
    image="units/undead/ghost-s-2.png"
    profile=portraits/undead/ghost.png
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=17
    movement_type=undeadspirit
    movement=7
    experience=50
    level=1
    alignment=chaotic
    advances_to=null
	{AMLA_DEFAULT}
    cost=21
    usage=scout
    hide_help=true
    description= _ "The dream world is a strange one, in which imagination may become reality and the arcane plane may become one with the physical. Even the most inexperienced at manipulating this reality often find that they may manifest their thoughts into a semi-sentient being, one that may or may not be easily controlled, depending on the creator's willpower and affinity for arcane energies."+{SPECIAL_NOTES}+{SPECIAL_NOTES_DRAIN}+{SPECIAL_NOTES_SPIRIT}+{SPECIAL_NOTES_ARCANE}
    die_sound=wail-long.wav
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/undead/transparent/ghost.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/undead/transparent/ghost.png"
    [/portrait]
    [defend]
        start_time=-126
        [if]
            hits=hit
            offset=0.0~-0.05:126,-0.05~0.0:126
            alpha=0.8~0.5:126,0.5~0.8:126

            hit_sound_start_time=-25
            [hit_sound_frame]
                sound=wail-sml.wav
            [/hit_sound_frame]
        [/if]
        [else]
            hits=kill
            offset=0.0~-0.05:126,-0.05~0.0:126
            alpha=0.8~0.5:126,0.5~0.8:126
        [/else]
        [else]
            hits=miss
            offset=0.0~-0.1:126,-0.1~0.0:126
            alpha=0.8~0.25:126,0.25~0.8:126
        [/else]
        [if]
            direction=s,se,sw
            [frame]
                image=units/undead/ghost-s-2.png:1,units/undead/ghost-s-attack-1.png:250,units/undead/ghost-s-2.png:1
            [/frame]
        [/if]
        [else]
            direction=n,ne,nw
            [frame]
                image=units/undead/ghost-n-2.png:1,units/undead/ghost-n-attack-1.png:250,units/undead/ghost-n-2.png:1
            [/frame]
        [/else]
    [/defend]
	[defense]
        impassable=50
    [/defense]
    [attack]
        name=touch
        description=_"touch"
        icon=attacks/touch-undead.png
        type=arcane
        range=melee
        damage=5
        number=3
        [specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack]
        name=wail
        description=_"wail"
        type=cold
        range=ranged
        damage=5
        number=3
		[specials]
            {WEAPON_SPECIAL_DRAIN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=wail
        [/filter_attack]
        {MISSILE_FRAME_WAIL}
        start_time=-200

        [if]
            direction=s,se,sw
            [frame]
                image="units/undead/ghost-s-2.png:25"
            [/frame]
            [frame]
                image="units/undead/ghost-s-attack-[1,2,1].png:[75,150,75]"
            [/frame]
            [frame]
                image="units/undead/ghost-s-2.png:25"
            [/frame]
        [/if]
        [else]
            direction=n,ne,nw
            [frame]
                image="units/undead/ghost-n-2.png:25"
            [/frame]
            [frame]
                image="units/undead/ghost-n-attack-[1,2,1].png:[75,150,75]"
            [/frame]
        [/else]
        attack_sound_start_time=-100
        [attack_sound_frame]
            sound=wail-sml.wav
        [/attack_sound_frame]
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        start_time=-500
        offset=0.0~1.0:425,0.0:225
        alpha=0.8~0.0:425,0.0~0.8:225

        [if]
            direction=s,se,sw
            [frame]
                image="units/undead/ghost-s-2.png:25"
            [/frame]
            [frame]
                image="units/undead/ghost-s-attack-[1~3,2,1].png:[175*2,100,75*2]"
            [/frame]
            [frame]
                image="units/undead/ghost-s-2.png:25"
            [/frame]
        [/if]
        [else]
            direction=n,ne,nw
            [frame]
                image="units/undead/ghost-n-2.png:25"
            [/frame]
            [frame]
                image="units/undead/ghost-n-attack-[1~3,2,1].png:[175*2,100,75*2]"
            [/frame]
            [frame]
                image="units/undead/ghost-n-2.png:25"
            [/frame]
        [/else]

        attack_sound_start_time=-126
        [attack_sound_frame]
            duration=1
        [/attack_sound_frame]
        [attack_sound_frame]
            sound=wail-sml.wav
        [/attack_sound_frame]
    [/attack_anim]

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