#textdomain wesnoth-Genesis

[unit_type]
    id=Faerie Arbiter
    name= _ "female^Faerie Arbiter"
    race=faerie
    gender=female
    image="units/faeries/arbiter.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    ellipse="misc/ellipse"
    hitpoints=51
    movement_type=faerie
    movement=6
    level=3
    alignment=neutral
    experience=150
    advances_to=null
    {AMLA_ARBITER}
    cost=77
    usage=archer
    description= _ "Although most faerie do not have any formal organziational structures, sometimes respected sorceresses of equilibrium magic act as arbiters in situations that require it. While not maintaining any sort of authority in any manner, these faerie are typically the most well-equipped to handle leadership positions and can readily guide their sistren as well as resolve any disputes that might arise between them."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/arbiter.png" "units/faeries/arbiter.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/arbiter.png" "units/faeries/arbiter.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [resistance]
        fire=100
        cold=100
        arcane=100
    [/resistance]
    [abilities]
        {ABILITY_EQUILIBRIUM25}
    [/abilities]
    [attack]
        name=aura
        description= _ "aura"
        icon=attacks/magic-missile.png
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=melee
        damage=6
        number=3
    [/attack]
    [attack]
        name=white lotus
        description= _ "white lotus"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_TRUE_STRIKE}
        [/specials]
        range=ranged
        damage=6
        number=3
        icon=attacks/thorns.png
    [/attack]
    [attack]
        name=black lotus
        description= _ "black lotus"
        type=blade
        [specials]
            {WEAPON_SPECIAL_PRECIPITOUS}
        [/specials]
        range=ranged
        damage=21
        number=3
        icon=attacks/thorns.png
    [/attack]

    [attack_anim]
        [filter_attack]
            name=aura
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries/arbiter.png:220"
        [/frame]
        [frame]
            image="units/faeries/arbiter.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=white lotus
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/arbiter.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=black lotus
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/arbiter.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Equipoise Faerie
    name= _ "female^Equipoise Faerie"
    race=faerie
    gender=female
    image="units/faeries/equipoise.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    ellipse="misc/ellipse"
    hitpoints=27
    movement_type=faerie
    movement=6
    level=1
    alignment=neutral
    experience=50
    advances_to=Faerie Intermediary
    cost=21
    usage=healer
    description= _ "One of the most nuanced and well-regarded magics among the faerie is known as 'equilibrium' or 'balance', a set of abilities that focus on compromise between the different facets of magic that the many types of faerie command. Since magic, in its very nature, is understood to be something volatile and unstable, the faerie study equilibrium spells in order to steady their sometimes disorderly abilities. In their most potent form, such equipoise enchantments can guarantee success of any spell the wielder chooses to cast, which can be very useful in situations that require careful precision."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/equipoise.png" "units/faeries/equipoise.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/equipoise.png" "units/faeries/equipoise.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [resistance]
        fire=100
        cold=100
        arcane=100
    [/resistance]
    [abilities]
        {ABILITY_EQUILIBRIUM10}
    [/abilities]
    [attack]
        name=aura
        description= _ "aura"
        icon=attacks/magic-missile.png
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=melee
        damage=3
        number=2
    [/attack]
    [attack]
        name=lotus
        description= _ "lotus"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_TRUE_STRIKE}
        [/specials]
        range=ranged
        damage=4
        number=2
        icon=attacks/thorns.png
    [/attack]

    [attack_anim]
        [filter_attack]
            name=aura
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries/equipoise.png:220"
        [/frame]
        [frame]
            image="units/faeries/equipoise.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=lotus
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/equipoise.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Faerie Intermediary
    name= _ "female^Faerie Intermediary"
    race=faerie
    gender=female
    image="units/faeries/intermediary.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    ellipse="misc/ellipse"
    hitpoints=39
    movement_type=faerie
    movement=6
    level=2
    alignment=neutral
    experience=130
    advances_to=Faerie Arbiter
    cost=48
    usage=archer
    description= _ "For the faerie, the symbol of balance is the lotus, which they cherish as one of their most prized flowers and grow abundantly in their famed reflection pools. The flower's fragrance is typically said to have calming properties, which enhances the power of the equilibrium magics that the faerie so esteem. On the other hand, the petals of the unique 'black lotus' contain a mild venom that acts as a potent stimulant. Some faerie choose to ingest these in small quantities prior to partaking in magical endeavors, purposely disrupting their usual cadence in order to produce new, unexpected results. Applied to battle, the consequence is a spell that often fails, but is tremendously devastating when it happens to succeed."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/intermediary.png" "units/faeries/intermediary.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/intermediary.png" "units/faeries/intermediary.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [resistance]
        fire=100
        cold=100
        arcane=100
    [/resistance]
    [abilities]
        {ABILITY_EQUILIBRIUM15}
    [/abilities]
    [attack]
        name=aura
        description= _ "aura"
        icon=attacks/magic-missile.png
        type=arcane
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=melee
        damage=6
        number=2
    [/attack]
    [attack]
        name=white lotus
        description= _ "white lotus"
        type=arcane
        [specials]
            {WEAPON_SPECIAL_TRUE_STRIKE}
        [/specials]
        range=ranged
        damage=4
        number=3
        icon=attacks/thorns.png
    [/attack]
    [attack]
        name=black lotus
        description= _ "black lotus"
        type=blade
        [specials]
            {WEAPON_SPECIAL_PRECIPITOUS}
        [/specials]
        range=ranged
        damage=16
        number=3
        icon=attacks/thorns.png
    [/attack]

    [attack_anim]
        [filter_attack]
            name=aura
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries/intermediary.png:220"
        [/frame]
        [frame]
            image="units/faeries/intermediary.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=white lotus
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/intermediary.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=black lotus
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/intermediary.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Faerie Dryad
    name= _ "Dryad"
    race=faerie
    gender=female
    image="units/faeries-other/dryad.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    profile="portraits/elves/druid.png" # fits well IMO
    hitpoints=50
    movement_type=faerie
    [resistance]
        fire=60
        cold=100
    [/resistance]
    movement=5
    level=3
    alignment=lawful
    experience=150
    advances_to=null
    {AMLA_FIRE_FAERIE}
    cost=62
    usage=archer
    description= _ "Dryads possess a closer affinity to their faerie nature than their brethren, yet at times exhibit a remarkable understanding of human nature. In fact, Dryads are more apt to engage the few travelers they meet in friendly conversation than seduce or murder them. Some elven scholars have proposed there exists a deeper connection between woodlandkind and humans as children of Earth; to many, this is unthinkable. For them, to even suggest such a connection between the violent, destructive humans and the ancient, illustrious elves constitutes heresy.

If there are those among the faerie with knowledge of this world’s beginnings, they do not share it, preferring instead to lead peaceful, modest lives. Nonetheless, the Dryads’ calm nature in no way means they are powerless. Their extensive knowledge of nature and its magical arts makes them a formidable opponent in any conflict."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries-other/dryad.png" "units/faeries-other/dryad.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries-other/dryad.png" "units/faeries-other/dryad.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [attack]
        name=fire aura
        description= _ "fire aura"
        icon=attacks/aura-fire.png
        type=fire
        range=melee
        damage=5
        number=5
    [/attack]
    [attack]
        name=mystic fire
        description= _ "mystic fire"
        icon=attacks/fireball.png
        type=fire
        range=ranged
        damage=7
        number=6
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fire aura
        [/filter_attack]
        {MELEE_FRAME_FIRE_AURA "units/faeries-other/dryad.png" "units/faeries-other/dryad.png"}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=mystic fire
        [/filter_attack]

        start_time=-575
        [frame]
            duration=650
            image="units/faeries-other/dryad.png"
        [/frame]

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

        fire_sound_start_time=-525
        [fire_sound_frame]
            sound=fire.wav
        [/fire_sound_frame]
    [/attack_anim]

    [variation]
        variation_id=tara
        inherit=yes
        hide_help=yes
        image="units/faeries-other/dryad-tara.png"
        {DEFENSE_ANIM_RANGE "units/faeries-other/dryad-tara.png" "units/faeries-other/dryad-tara.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
        {DEFENSE_ANIM_ELVEN_RANGE "units/faeries-other/dryad-tara.png" "units/faeries-other/dryad-tara.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }

        [attack_anim]
            [filter_attack]
                name=fire aura
            [/filter_attack]
            {MELEE_FRAME_FIRE_AURA "units/faeries-other/dryad-tara.png" "units/faeries-other/dryad-tara.png"}
        [/attack_anim]
        [attack_anim]
            [filter_attack]
                name=mystic fire
            [/filter_attack]
            [frame]
                image="units/faeries-other/dryad-tara.png"
            [/frame]
        [/attack_anim]
    [/variation]
[/unit_type]

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


#textdomain wesnoth-Genesis

[unit_type]
    id=Fire Faerie
    name= _ "Fire Faerie"
    race=faerie
    gender=female
    image="units/faeries-other/fire.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    profile="portraits/elves/druid.png" # fits well IMO
    hitpoints=38
    movement_type=faerie
    [resistance]
        fire=70
        cold=100
    [/resistance]
    movement=5
    level=2
    alignment=lawful
    experience=85
    advances_to=Faerie Dryad,Faerie Spirit
    cost=36
    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."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries-other/fire.png" "units/faeries-other/fire.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries-other/fire.png" "units/faeries-other/fire.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [attack]
        name=fire aura
        description= _ "fire aura"
        icon=attacks/aura-fire.png
        type=fire
        range=melee
        damage=5
        number=4
    [/attack]
    [attack]
        name=mystic fire
        description= _ "mystic fire"
        icon=attacks/fireball.png
        type=fire
        range=ranged
        damage=6
        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.png" "units/faeries-other/fire.png"}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=mystic fire
        [/filter_attack]

        start_time=-300
        [frame]
            image="units/faeries-other/fire.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=Faerie Spirit
    name= _ "Forest Spirit"
    race=faerie
    gender=female
    image="units/faeries-other/spirit.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    hitpoints=43
    movement_type=undeadspirit
    movement=6
    level=3
    alignment=lawful
    experience=150
    advances_to=null
    {AMLA_FIRE_FAERIE}
    {TRAIT_SPIRIT}
    cost=64
    [movement_costs]
        unwalkable={UNREACHABLE}
    [/movement_costs]
    [defense]
        forest=40
    [/defense]
    [resistance]
        fire=70
        cold=100
    [/resistance]
    [abilities]
        {ABILITY_SYLVAN_SPARK}
    [/abilities]
    usage=archer
    description= _ "One of the greatest mysteries of life is the true nature of Faerie, a domain of existence beyond the grasp of mortal creatures and the source of a power said to predate Irdya’s creation by an immensurable eternity. Even though elves and faeries have an innate affinity to the mystical energy within, their ability to channel it is severely constrained by their attachment to the physical realm. Breaking free of those bindings and fully embracing the arcane flame is not without its drawbacks, however.

These faerie phantasms are occasionally seen aimlessly wandering the forests during the twilight. Their warped minds are no longer able to discern our reality from theirs, and only gradually fading memories keep them anchored to the domain of the living."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries-other/spirit.png" "units/faeries-other/spirit.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries-other/spirit.png" "units/faeries-other/spirit.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=5
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=mystic fire
        description= _ "mystic fire"
        icon=attacks/fireball.png
        type=fire
        range=ranged
        damage=6
        number=5
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]

    [standing_anim]
        start_time=0
        blend_color=123,153,182
        blend_ratio="0.00~0.15:625,0.15~0.10:625,0.10~0.15:625,0.15~0.00:625"
        alpha="0.95~0.90:750,0.90~0.95:250,0.95~0.90:750,0.90~0.95:750"
        [frame]
            image="units/faeries-other/spirit.png:2500"
        [/frame]
    [/standing_anim]

    [attack_anim]
        [filter_attack]
            name=fire aura
        [/filter_attack]
        {MELEE_FRAME_FIRE_AURA "units/faeries-other/spirit.png" "units/faeries-other/spirit.png"}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=mystic fire
        [/filter_attack]

        start_time=-575
        [frame]
            duration=650
            image="units/faeries-other/spirit.png"
        [/frame]

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

        fire_sound_start_time=-525
        [fire_sound_frame]
            sound=fire.wav
        [/fire_sound_frame]
    [/attack_anim]
[/unit_type]

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


#textdomain wesnoth-Genesis

[unit_type]
    id=Faerie Sprite
    name= _ "Sprite"
    race=faerie
    gender=female
    image="units/faeries-other/sprite.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    profile="portraits/elves/shaman.png" # fits well IMO
    hitpoints=25
    movement_type=faerie
    [resistance]
        fire=80
        cold=100
    [/resistance]
    movement=5
    level=1
    alignment=lawful
    experience=38
    advances_to=Fire Faerie
    cost=17
    usage=archer
    description= _ "To a creature of the forests, fire is a mortal enemy, yet to the Faerie Sprites, it is a weapon strangely antithetical to their wooded nature. Though not much is otherwise factually known about the Faerie race, rare as they are and despite their numbers having grown since the Fall, they have always been viewed as gentle, mischievous beings, if perhaps a little too apt to play with the hearts of men.

Travelers who have encountered them speak of beautiful elfin women clad in simple robes, their gossamer-thin wings glinting like jewels in starlight. Rare is the man — or woman — whose breath is not lost upon the sight of these beings, and neither are their advances spurned. Some awaken the next morning alone, and move on, only to find a child on their doorsteps months later. A more unlucky number never again see the light of day; they are often found dead, lying contentedly amongst the fallen leaves.

Yet despite their reputations, faeries are by no means evil. Perhaps it is their strange sense of impish humor that leads them to do these things, or perhaps something deeper in their nature."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries-other/sprite.png" "units/faeries-other/sprite.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries-other/sprite.png" "units/faeries-other/sprite.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [attack]
        name=fire aura
        description= _ "fire aura"
        icon=attacks/aura-fire.png
        type=fire
        range=melee
        damage=3
        number=3
    [/attack]
    [attack]
        name=mystic fire
        description= _ "mystic fire"
        icon=attacks/fireball.png
        type=fire
        range=ranged
        damage=5
        number=4
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=fire aura
        [/filter_attack]
        {MELEE_FRAME_FIRE_AURA "units/faeries-other/sprite.png" "units/faeries-other/sprite.png"}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=mystic fire
        [/filter_attack]

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

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

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


#textdomain wesnoth-Genesis

[unit_type]
    id=Faerie Guardian
    name= _ "Faerie Guardian"
    race=faerie
    gender=female
    image="units/faeries/healer/guardian.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    profile="portraits/elves/druid.png" # fits well IMO
    hitpoints=47
    movement_type=faerie
    movement=6
    level=3
    alignment=neutral
    experience=210
    advances_to=Faerie Warden
    cost=50
    usage=archer
    description= _ "In order to keep unwanted visitors out of their forests, some faerie learn to channel their powers toward stifling the aggression of potential attackers. Like their other pacifistic kin, these guardians of the forests are rarely found engaging in combat with their enemies, preferring instead to mitigate attacks from afar. In their presence, all manner of blade, mace, and spear seem to dull in sharpness and lessen in force - even the bloodthirsty nature of many demons is greatly diminished. The protective nature of this ability has rightly earned it the nickname of 'guardian angel' and has stopped many a foe from encroaching on the faeries' homes."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/healer/guardian.png" "units/faeries/healer/guardian.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/healer/guardian.png" "units/faeries/healer/guardian.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [abilities]
        {ABILITY_GUARDIAN_ANGEL1}
    [/abilities]
    [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]
    {GUARDIAN_ANGEL (Faerie Guardian) 20 2}
    [attack_anim]
        [filter_attack]
            name=faerie touch
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries/healer/guardian.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/healer/guardian.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]
        [frame]
            image="units/faeries/healer/guardian.png:350"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Faerie Shaman
    name= _ "Faerie Shaman"
    race=faerie
    gender=female
    image="units/faeries/healer/shaman.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    profile="portraits/elves/shaman.png"
    hitpoints=24
    movement_type=faerie
    movement=5
    level=1
    alignment=neutral
    experience=40
    advances_to=Forest Nymph
    cost=16
    usage=archer
    description= _ "Caretakers of the forests and guardians of the wilds, many faerie spend long periods of time communing with nature, learn to utilize its energies to hamper their foes and heal their friends. While ill-suited and not disposed for combat, they nonetheless selflessly come to the aid of those who need them, be it other faerie or even humans and other races."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/healer/shaman.png" "units/faeries/healer/shaman.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/healer/shaman.png" "units/faeries/healer/shaman.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [abilities]
        {ABILITY_HEALS}
    [/abilities]
    [attack]
        name=faerie touch
        description= _ "faerie touch"
        icon=attacks/touch-faerie.png
        type=impact
        range=melee
        damage=3
        number=2
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=ensnare
        description= _ "ensnare"
        icon=attacks/entangle.png
        type=impact
        range=ranged
        damage=3
        number=2
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=faerie touch
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries/healer/shaman.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/healer/shaman.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]
        [frame]
            image="units/faeries/healer/shaman.png:350"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Faerie Siren
    name= _ "Faerie Siren"
    race=faerie
    gender=female
    image="units/faeries-other/siren.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    profile="portraits/elves/shyde.png"
    hitpoints=50
    movement_type=faerie
    movement=6
    level=3
    alignment=neutral
    experience=150
    advances_to=null
    {AMLA_HEALER_FAERIE}
    cost=54
    usage=archer
    description= _ "Faerie 'Sirens' take their name from the eponymous maidens of the water, not as an epithet indicating their intimate connection with nature, but rather as a nod to their ability to sing with unparalleled skill. As a common past time among faerie, singing is often heard in the forests, where many groups of faerie take turns gracing the trees with their songs. Though most are already reasonably skilled at the art, the 'Sirens' songs are truly entrancing, possessed of tone of ethereal beauty and masterful control. Fortunately for lost wanderers, the purpose of the Sirens' song is not of a malicious nature, unlike that of their mythological counterparts."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries-other/siren.png" "units/faeries-other/siren.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries-other/siren.png" "units/faeries-other/siren.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [abilities]
        {ABILITY_CURES}
    [/abilities]
    [attack]
        name=faerie touch
        description= _ "faerie touch"
        icon=attacks/touch-faerie.png
        type=impact
        range=melee
        damage=7
        number=2
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=ensnare
        description= _ "ensnare"
        icon=attacks/entangle.png
        type=impact
        range=ranged
        damage=7
        number=4
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=faerie touch
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries-other/siren.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/siren.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]
        [frame]
            image="units/faeries-other/siren.png:350"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Faerie Warden
    name= _ "Faerie Warden"
    race=faerie
    gender=female
    image="units/faeries/healer/warden.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    profile="portraits/elves/druid.png" # fits well IMO
    hitpoints=59
    movement_type=faerie
    movement=6
    level=4
    alignment=neutral
    experience=200
    advances_to=null
    {AMLA_HEALER_FAERIE}
    cost=70
    usage=archer
    description= _ "Mastery of nature's protective aura allows these faerie to render all manner of physical force useless in their presence. Wardens of the wild, these faerie live the majority of their lives isolated deep in the forests, but are often first to battle when their home is under threat. Unlike their kin, the Wardens' prowess with natural energy grants them a reasonable degree of ability in close combat, which they use to great effect in subduing their foes."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/healer/warden.png" "units/faeries/healer/warden.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/healer/warden.png" "units/faeries/healer/warden.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [abilities]
        {ABILITY_GUARDIAN_ANGEL2}
    [/abilities]
    [resistance]
        blade=90
        pierce=90
        impact=90
    [/resistance]
    [attack]
        name=faerie touch
        description= _ "faerie touch"
        icon=attacks/touch-faerie.png
        type=impact
        range=melee
        damage=7
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=ensnare
        description= _ "ensnare"
        icon=attacks/entangle.png
        type=impact
        range=ranged
        damage=12
        number=3
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]

    {GUARDIAN_ANGEL (Faerie Warden) 40 2}
    [attack_anim]
        [filter_attack]
            name=faerie touch
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries/healer/warden.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/healer/warden.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]
        [frame]
            image="units/faeries/healer/warden.png:350"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Forest Nymph
    name= _ "Forest Nymph"
    race=faerie
    gender=female
    image="units/faeries/healer/forest-nymph.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    profile="portraits/elves/druid.png"
    hitpoints=36
    movement_type=faerie
    movement=6
    level=2
    alignment=neutral
    experience=93
    advances_to=Faerie Guardian,Faerie Siren
    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={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/healer/forest-nymph.png" "units/faeries/healer/forest-nymph.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/healer/forest-nymph.png" "units/faeries/healer/forest-nymph.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [abilities]
        {ABILITY_HEAL6}
        {ABILITY_UNPOISON}
    [/abilities]
    [attack]
        name=faerie touch
        description= _ "faerie touch"
        icon=attacks/touch-faerie.png
        type=impact
        range=melee
        damage=5
        number=2
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    [attack]
        name=ensnare
        description= _ "ensnare"
        icon=attacks/entangle.png
        type=impact
        range=ranged
        damage=6
        number=3
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=faerie touch
        [/filter_attack]
        start_time=-240

        [frame]
            image="units/faeries/healer/forest-nymph.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/healer/forest-nymph.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]
        [frame]
            image="units/faeries/healer/forest-nymph.png:350"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Yousei Briar Maiden
    name= _ "female^Briar Maiden"
    race=faerie
    gender=female
    image="units/faeries/yousei/briarmaiden.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    ellipse="misc/ellipse"
    hitpoints=31
    movement_type=yousei
    movement=6
    level=1
    alignment=neutral
    experience=39
    advances_to=Yousei Bristler,Yousei Hana
    cost=17
    usage=archer
    description= _ "Sometimes mistaken for satyrs, the Yousei tend to be the hardiest and most physically adept subcategory among most faerie. Unlike the other faerie, who embody the protective or healing spirit of nature, the Yousei embrace its more wrathful aspect, turning its brambles and thorns against those who would threaten the natural order. While rarely the aggressors in any altercation, these faerie are the ones most often seen defending their homes against any form of intruder."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/yousei/briarmaiden.png" "units/faeries/yousei/briarmaiden.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/yousei/briarmaiden.png" "units/faeries/yousei/briarmaiden.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
    [/attack]
    [attack]
        name=thorns
        description=_"thorns"
        type=pierce
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=6
        number=3
        range=ranged
    [/attack]

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

        [frame]
            image="units/faeries/yousei/briarmaiden.png:220"
        [/frame]
        [frame]
            image="units/faeries/yousei/briarmaiden.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=thorns
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/yousei/briarmaiden.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Yousei Bristler
    name= _ "female^Yousei Bristler"
    race=faerie
    gender=female
    image="units/faeries/yousei/bristler.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    ellipse="misc/ellipse"
    hitpoints=47
    movement_type=yousei
    movement=6
    level=2
    alignment=neutral
    experience=88
    advances_to=Yousei Thorntress
    cost=42
    usage=archer
    description= _ "As much as a faerie can be so, a Yousei maiden can be perfectly combative, and even hateful at times. Nurturing a particular dislike for demons, these forest dwellers are quickly provoked and can easily match their demonic counterparts in most disputes."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/yousei/bristler.png" "units/faeries/yousei/bristler.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/yousei/bristler.png" "units/faeries/yousei/bristler.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [attack]
        name=faerie touch
        description= _ "faerie touch"
        icon=attacks/touch-faerie.png
        type=impact
        range=melee
        damage=8
        number=3
    [/attack]
    [attack]
        name=thorns
        description=_"thorns"
        type=pierce
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=9
        number=3
        range=ranged
    [/attack]

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

        [frame]
            image="units/faeries/yousei/bristler.png:220"
        [/frame]
        [frame]
            image="units/faeries/yousei/bristler.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=thorns
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/yousei/bristler.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Yousei Hana
    name= _ "female^Yousei Hana"
    race=faerie
    gender=female
    image="units/faeries/yousei/hana.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    ellipse="misc/ellipse"
    hitpoints=44
    movement_type=yousei
    movement=6
    level=2
    alignment=neutral
    experience=110
    advances_to=Yousei Tsubaki
    cost=42
    usage=archer
    description= _ "The Yousei have a saying that can roughly be translated to 'The hand that reaches for the rose will be scratched by the briar's thorn'. This concept is occasionally applied to battle, where some of these faerie forego traditional melee combat in favor of focusing on defensive and retaliative tactics. Accompanying this is their use of strange blooms, which grow larger and more beautiful with both the supplemental energies of their allies as well as the waning energies of their enemies."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/yousei/hana.png" "units/faeries/yousei/hana.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/yousei/hana.png" "units/faeries/yousei/hana.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [abilities]
        {ABILITY_BRIAR_ROSE}
    [/abilities]
    [attack]
        name=radiant bloom
        description=_"radiant bloom"
        type=pierce
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
            {WEAPON_SPECIAL_BLOOM}
        [/specials]
        damage=8
        number=3
        range=ranged
        icon=attacks/thorns.png
    [/attack]
    [attack]
        name=vitalizing bloom
        description=_"vitalizing bloom"
        type=pierce
        [specials]
            {WEAPON_SPECIAL_DRAIN}
            {WEAPON_SPECIAL_BLOOM}
        [/specials]
        damage=7
        number=3
        range=ranged
        icon=attacks/thorns.png
    [/attack]

    {BRIAR_ROSE}

    [attack_anim]
        [filter_attack]
            name=radiant bloom
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/yousei/hana.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=vitalizing bloom
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/yousei/hana.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Yousei Thorntress
    name= _ "female^Yousei Thorntress"
    race=faerie
    gender=female
    image="units/faeries/yousei/thorntress.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    ellipse="misc/ellipse"
    hitpoints=60
    movement_type=yousei
    movement=6
    level=3
    alignment=neutral
    experience=150
    advances_to=null
    {AMLA_YOUSEI}
    cost=66
    usage=archer
    description= _ "There is an unusual tale of a demon traveler who was said to have wandered all the lands of Irdya in his extensive journies. Having rested in the forests of the faerie many times, he was curiously on friendly terms with many of them, though they still would not permit him to enter their secret groves in the deepwoods. One day, somewhat in jest, he challenged the relatively diminutive faerie to a contest of strength, knowing that most could never match a demon's physical prowess.

'It's a good deal,' he laughed. 'If I win, you let me enter your forbidden forest. And if you win, I will be your servant for ten years.'

Replied the Yousai, 'Thanks for the offer, but I like girls. Still, your challenge sounds pretty fun. Let's try it.'

'Typical faerie,' he jested, and readied himself to the task.

In front of them sat nine boulders, each larger than the last, with the final one being nearly the size of himself. Stepping forward, the demon rubbed his hands together and began lifting the stones one after another. By the fourth, he found his muscles burning, arms and legs aching all over. The fifth must have been ten times his own weight, but he persevered and continued on. He nearly collapsed under the weight of the sixth one, and by the seventh, he could continue no more. Still, he concluded, he had done a good job, since most faerie probably couldn't even have lifted the second stone.

And then it was the Yousai's turn.

'Remember,' he called out, 'No magic!'

'No magic,' she agreed brightly, and set herself in position.

Two, three, and four... by boulder number five, he was shaking his head in disbelief, as the unusually sturdy faerie girl lifted the rocks one after another. The sixth, she lifted with some effort, and with a grunt, the seventh came off the ground too. Then eight and nine were a struggle, but when all was said and done, she dropped the last one and turned toward him with a smug look of victory.

'I guess that settles it,' she intoned. 'Looks like you need to train some more.'

The demon groaned, but acknowledged his defeat. 'Just you wait, I'll be back someday and then you'll see! Next time, victory will be mine.'

And with that, he left to go wander the lands of Irdya for another great many years. Rumor has it that when he returned, he had another challenge with the same Yousai girl, who once again beat him just as handily as she had the first time."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/yousei/thorntress.png" "units/faeries/yousei/thorntress.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/yousei/thorntress.png" "units/faeries/yousei/thorntress.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [attack]
        name=faerie touch
        description= _ "faerie touch"
        icon=attacks/touch-faerie.png
        type=impact
        range=melee
        damage=10
        number=3
    [/attack]
    [attack]
        name=thorns
        description=_"thorns"
        type=pierce
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
            {WEAPON_SPECIAL_WHIPLASH}
        [/specials]
        damage=12
        number=3
        range=ranged
    [/attack]

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

        [frame]
            image="units/faeries/yousei/thorntress.png:220"
        [/frame]
        [frame]
            image="units/faeries/yousei/thorntress.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=thorns
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/yousei/thorntress.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Yousei Tsubaki
    name= _ "female^Yousei Tsubaki"
    race=faerie
    gender=female
    image="units/faeries/yousei/tsubaki.png"
    halo="halo/elven/shyde-stationary-halo[1~6].png:150"
    ellipse="misc/ellipse"
    hitpoints=56
    movement_type=yousei
    movement=6
    level=3
    alignment=neutral
    experience=150
    advances_to=null
    {AMLA_TSUBAKI}
    cost=70
    usage=archer
    description= _ "While the diminutive 'Tsubaki' comes from the more mundane daily lives of these Yousei, they possess a special combative ability based around the sakura, or cherry blossom. Though the blossom in itself is not particularly harmful, those who come under its effects often speak of being disoriented by a 'sea of pink flowers', which blots out the vision and renders them helpless against other attacks. As quickly as the flowers bloom, they fade as well, leaving their beholders to perish in a fleeting cascade of petals."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    {DEFENSE_ANIM_RANGE "units/faeries/yousei/tsubaki.png" "units/faeries/yousei/tsubaki.png" {SOUND_LIST:ELF_FEMALE_HIT} melee }
    {DEFENSE_ANIM_ELVEN_RANGE "units/faeries/yousei/tsubaki.png" "units/faeries/yousei/tsubaki.png" {SOUND_LIST:ELF_FEMALE_HIT} ranged }
    [abilities]
        {ABILITY_BRIAR_ROSE}
    [/abilities]
    [attack]
        name=radiant bloom
        description=_"radiant bloom"
        type=pierce
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
            {WEAPON_SPECIAL_BLOOM}
        [/specials]
        damage=12
        number=3
        range=ranged
        icon=attacks/thorns.png
    [/attack]
    [attack]
        name=vitalizing bloom
        description=_"vitalizing bloom"
        type=pierce
        [specials]
            {WEAPON_SPECIAL_DRAIN}
            {WEAPON_SPECIAL_BLOOM}
        [/specials]
        damage=10
        number=3
        range=ranged
        icon=attacks/thorns.png
    [/attack]
    [attack]
        name=cherry blossom
        description=_"cherry blossom"
        type=pierce
        [specials]
            {WEAPON_SPECIAL_BLOSSOM}
        [/specials]
        damage=1
        number=1
        range=ranged
        icon=attacks/thorns.png
    [/attack]

    {CHERRY_BLOSSOM}
    {BRIAR_ROSE}

    [attack_anim]
        [filter_attack]
            name=radiant bloom
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/yousei/tsubaki.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=vitalizing bloom
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/yousei/tsubaki.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=cherry blossom
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image="projectiles/thorns.png"
            image_diagonal="projectiles/thorns-ne.png"
        [/missile_frame]

        start_time=-300
        [frame]
            image="units/faeries/yousei/tsubaki.png"
            halo="halo/elven/nature-halo[1~8].png"
            halo_x,halo_y=0,-12
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Cavalier Statue
    name= _ "Cavalier"
    race=human
    image="units/human-loyalists/cavalier/cavalier.png"
    hitpoints=64
    movement_type=null
    movement=0
    experience=150
    level=3
    alignment=lawful
    advances_to=null
	hide_help=true
    {AMLA_DEFAULT}
    cost=52
    description=
	[event]
		name=prestart
		[petrify]
			type=Cavalier Statue
		[/petrify]
	[/event]
	[event]
		name=new turn
		[petrify]
			type=Cavalier Statue
		[/petrify]
	[/event]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Faerie Dryad Statue
    name= _ "Dryad"
    race=faerie
    gender=female
    image="units/faeries-other/dryad.png"
    hitpoints=50
    movement_type=null
    movement=0
    level=3
    alignment=lawful
    experience=150
    advances_to=null
    {AMLA_DEFAULT}
	hide_help=true
    cost=60
    description=
	[event]
		name=prestart
		[petrify]
			type=Faerie Dryad Statue
		[/petrify]
	[/event]
	[event]
		name=new turn
		[petrify]
			type=Faerie Dryad Statue
		[/petrify]
	[/event]
[/unit_type]


#textdomain wesnoth-Era_of_Chaos

[unit_type]
    id=Eventide Dancer Statue
    name= _ "female^Eventide Dancer"
    race=faerie
    gender=female
    image="units/faeries-other/eventide-dancer.png"
    ellipse="misc/ellipse"
    hitpoints=62
    movement_type=null
    movement=0
    level=3
    alignment=chaotic
    experience=150
    advances_to=null
	hide_help=true
    {AMLA_DEFAULT}
    cost=80
    description=
	[event]
		name=prestart
		[petrify]
			type=Eventide Dancer Statue
		[/petrify]
	[/event]
	[event]
		name=new turn
		[petrify]
			type=Eventide Dancer Statue
		[/petrify]
	[/event]
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Grand Marshal Statue
    name= _ "Grand Marshal"
    race=human
    image="units/human-loyalists/marshal.png"
    hitpoints=60
    movement_type=null
    movement=0
    experience=200
    level=4
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=66
    description=
	hide_help=true
	[event]
		name=prestart
		[petrify]
			type=Grand Marshal Statue
		[/petrify]
	[/event]
	[event]
		name=new turn
		[petrify]
			type=Grand Marshal Statue
		[/petrify]
	[/event]
[/unit_type]


#textdomain wesnoth-units
[unit_type]
    id=Great Mage Statue
    name= _ "Great Mage"
    race=human
    gender=male,female
    image="units/human-magi/great-mage.png"
    hitpoints=65
    movement_type=null
    movement=0
    experience=200
    level=4
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=72
    hide_help=true
    description=
	[event]
		name=prestart
		[petrify]
			type=Great Mage Statue
		[/petrify]
	[/event]
	[event]
		name=new turn
		[petrify]
			type=Great Mage Statue
		[/petrify]
	[/event]
    [female]
        name= _ "female^Great Mage"
        gender=female
        image="units/human-magi/great-mage+female.png"
    [/female]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Guardian of Earth Statue
    name= _ "female^Guardian of Earth"
    race=faerie
    gender=female
    image="units/guardians/guardian-of-earth-xiael.png"
    hitpoints=777
    movement_type=null
    movement=0
    experience=450
    level=9
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=820
    usage=healer
    hide_help=true
    undead_variation=null
    description=
	[event]
		name=prestart
		[petrify]
			type=Guardian of Earth Statue
		[/petrify]
	[/event]
	[event]
		name=new turn
		[petrify]
			type=Guardian of Earth Statue
		[/petrify]
	[/event]
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Human Child
    name= _ "Child"
    race=human
    gender=male
    image="units/humans/child.png"
    hitpoints=11
    movement_type=smallfoot
    movement=5
    experience=50
    level=0
    alignment=lawful
    advances_to=null
	{AMLA_DEFAULT}
    cost=4
    hide_help=true
    usage=mixed fighter
    description=
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Lady Lake
    name= _ "female^Lady of the Lake"
    race=fae
    gender=female
    ignore_race_traits=yes
    image="units/guardians/uria-silhouette4.png"
    hitpoints=90
    movement_type=arcanefae
    [defense]
        deep_water=0
        shallow_water=0
        swamp_water=0
        reef=0
        flat=0
        sand=0
        forest=0
        hills=0
        mountains=0
        village=0
        castle=0
        cave=0
        frozen=0
        unwalkable=0
        impassable=0
        fungus=0
    [/defense]
    [resistance]
        blade=0
        pierce=0
        impact=0
        fire=0
        cold=0
        arcane=0
    [/resistance]
    movement=10
    experience=1000
    level=10
    alignment=lawful
    cost=1000
    usage=archer
    undead_variation=null
    hide_help=true
    description= _ "There is no accurate information available about this class of beings at this time."
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Mage of Light Statue
    name= _ "Mage of Light"
    race=human
    gender=male,female
    image="units/human-magi/white-cleric.png"
    hitpoints=47
    movement_type=null
    movement=0
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=64
	hide_help=true
    description=
	[event]
		name=prestart
		[petrify]
			type=Mage of Light Statue
		[/petrify]
	[/event]
	[event]
		name=new turn
		[petrify]
			type=Mage of Light Statue
		[/petrify]
	[/event]
    [female]
        name= _ "female^Mage of Light"
        gender=female
        image="units/human-magi/white-cleric+female.png"
    [/female]
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Paladin Statue
    name= _ "Paladin"
    race=human
    image="units/human-loyalists/paladin/paladin.png"
    image_icon="units/human-loyalists/paladin/paladin.png~CROP(0,8,80,72)"
    hitpoints=65
    movement_type=null
    movement=0
    experience=150
    level=3
    alignment=lawful
    advances_to=null
	hide_help=true
    {AMLA_DEFAULT}
    cost=58
    description=
	[event]
		name=prestart
		[petrify]
			type=Paladin Statue
		[/petrify]
	[/event]
	[event]
		name=new turn
		[petrify]
			type=Paladin Statue
		[/petrify]
	[/event]
[/unit_type]


#textdomain wesnoth-Genesis

[unit_type]
    id=Demon Stromguarde Statue
    name= _ "Stromguarde"
    race=demon
    image="units/demons/stromguarde.png"
    hitpoints=76
    movement_type=null
    movement=0
    experience=200
    level=4
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=110
    usage=mixed fighter
    hide_help=true
    description=
	[event]
		name=prestart
		[petrify]
			type=Demon Stromguarde Statue
		[/petrify]
	[/event]
	[event]
		name=new turn
		[petrify]
			type=Demon Stromguarde Statue
		[/petrify]
	[/event]
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Dream Dragoon
    [base_unit]
        id=Dragoon
    [/base_unit]
    alignment=chaotic
    hide_help=yes
    do_not_list=yes
    {DREAM_WALK}
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Dream Javelineer
    [base_unit]
        id=Javelineer
    [/base_unit]
    alignment=chaotic
    hide_help=yes
    do_not_list=yes
    {DREAM_WALK}
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Dream Knight
    [base_unit]
        id=Knight
    [/base_unit]
    alignment=chaotic
    hide_help=yes
    do_not_list=yes
    {DREAM_WALK}
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Dream Longbowman
    [base_unit]
        id=Longbowman
    [/base_unit]
    alignment=chaotic
    hide_help=yes
    do_not_list=yes
    {DREAM_WALK}
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Dream Red Mage
    [base_unit]
        id=Red Mage
    [/base_unit]
    alignment=chaotic
    hide_help=yes
    do_not_list=yes
    {DREAM_WALK}
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Dream White Mage
    [base_unit]
        id=White Mage
    [/base_unit]
    alignment=chaotic
    hide_help=yes
    do_not_list=yes
    {DREAM_WALK}
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Dream Pikeman
    [base_unit]
        id=Pikeman
    [/base_unit]
    alignment=chaotic
    hide_help=yes
    do_not_list=yes
    {DREAM_WALK}
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Dream Shock Trooper
    [base_unit]
        id=Shock Trooper
    [/base_unit]
    alignment=chaotic
    hide_help=yes
    do_not_list=yes
    {DREAM_WALK}
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Dream Swordsman
    [base_unit]
        id=Swordsman
    [/base_unit]
    alignment=chaotic
    hide_help=yes
    do_not_list=yes
    {DREAM_WALK}
[/unit_type]


#textdomain wesnoth-Genesis

#define AMLA_WINDMAGE
   {AMLA_OPTION_WINDBLADE}
   {AMLA_OPTION_TALYAFLURRY}
   {AMLA_OPTION_WHIRLWIND}
   {AMLA_DEFAULT}
#enddef
#define AMLA_OPTION_WINDBLADE
    [advancement]
        max_times=-1
        description=_"increased physical strength"
        image="units/humans/talya.png"
        id=amla_melee_windmage
        strict_amla=yes
        [effect]
            apply_to=attack
            name=wind blade
            increase_damage=1
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=40%
        [/effect]
    [/advancement]
#enddef
#define AMLA_OPTION_TALYAFLURRY
    [advancement]
        max_times=-1
        description=_"more flurry hits"
        image="units/humans/talya.png"
        id=amla_flurry_windmage
        strict_amla=yes
        [effect]
            apply_to=attack
            name=flurry
            increase_attacks=1
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=40%
        [/effect]
    [/advancement]
#enddef
#define AMLA_OPTION_WHIRLWIND
    [advancement]
        max_times=-1
        description=_"stronger whirlwind"
        image="units/humans/talya.png"
        id=amla_whirl_windmage
        strict_amla=yes
        [effect]
            apply_to=attack
            name=whirlwind
            increase_damage=2
            heal_full=yes
        [/effect]
        [effect]
            apply_to=max_experience
            increase=40%
        [/effect]
    [/advancement]
#enddef

#define TALYA_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 BLITZ_ABILITY VARIANT_NAME
    {TALYA_ADVANCEMENT 0 0 (
        id=talya_blitz_ability
        description= _ "can attack thrice in a turn"
        image="units/humans/talya.png"
        [effect]
            apply_to=remove_ability
            [abilities]
                {ABILITY_BLITZ2}
            [/abilities]
        [/effect]
        [effect]
            apply_to=new_ability
            [abilities]
                {ABILITY_BLITZ}
            [/abilities]
        [/effect]
        [effect]
            apply_to=movement
            increase=1
        [/effect]
        [effect]
            apply_to=max_experience
            increase=-100%
        [/effect]
        [effect]
            apply_to=max_experience
            increase=89
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define TALYA_COUNTER VARIANT_NAME
    {TALYA_ADVANCEMENT 0 0 (
        id=talya_counter
        description= _ "enemies cannot retaliate against wind blade"
        image=attacks/sword-elven.png
        [effect]
            apply_to=attack
            name=wind blade
            [set_specials]
                {WEAPON_SPECIAL_MAGICAL}
                {WEAPON_SPECIAL_COUNTERSTRIKE}
                mode=replace
            [/set_specials]
        [/effect]
        [effect]
            apply_to=attack
            name=wind blade
            increase_damage=4
        [/effect]
        [effect]
            apply_to=movement
            increase=1
        [/effect]
        [effect]
            apply_to=max_experience
            increase=-100%
        [/effect]
        [effect]
            apply_to=max_experience
            increase=89
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define TALYA_PIERCE VARIANT_NAME
    {TALYA_ADVANCEMENT 0 0 (
        id=talya_pierce
        description= _ "enemies lose resistance on hit"
        image=attacks/bow-elven.png
        [effect]
            apply_to=attack
            name=flurry
            [set_specials]
                {WEAPON_SPECIAL_MAGICAL}
                {WEAPON_SPECIAL_PIERCE}
                mode=replace
            [/set_specials]
        [/effect]
        [effect]
            apply_to=movement
            increase=1
        [/effect]
        [effect]
            apply_to=attack
            name=flurry
            increase_attacks=2
        [/effect]
        [effect]
            apply_to=attack
            name=whirlwind
            increase_damage=3
        [/effect]
        [effect]
            apply_to=max_experience
            increase=-100%
        [/effect]
        [effect]
            apply_to=max_experience
            increase=89
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define TALYA_ATTK_BONUS VARIANT_NAME
    {TALYA_ADVANCEMENT 0 100 (
        id=talya_attk
        description= _ "increased damage"
        image=attacks/sword-elven.png
        [effect]
            apply_to=attack
            name=wind blade
            increase_damage=2
        [/effect]
        [effect]
            apply_to=attack
            name=flurry
            increase_attacks=2
        [/effect]
        [effect]
            apply_to=attack
            name=whirlwind
            increase_damage=3
        [/effect]
    ) {VARIANT_NAME}}
#enddef
#define TALYA_DEF_BONUS VARIANT_NAME
    {TALYA_ADVANCEMENT 8 75 (
        id=talya_def
        description= _ "increased health and melee damage"
        image=attacks/heater-shield.png
        [effect]
            apply_to=attack
            name=wind blade
            increase_damage=2
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define TALYA_RESIST_NODMG VARIANT_NAME
    {TALYA_ADVANCEMENT 6 90 (
        id=talya_resist
        description= _ "gains +10% physical resistance and health"
        image=attacks/heater-shield.png
        [effect]
            apply_to=resistance
            [resistance]
                blade=-10
                pierce=-10
                impact=-10
            [/resistance]
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define TALYA_HEALTH VARIANT_NAME
    {TALYA_ADVANCEMENT 7 90 (
        id=talya_health
        description= _ "gains +10% fire and cold resistance"
        image=attacks/heater-shield.png
        [effect]
            apply_to=resistance
            [resistance]
                fire=-10
                cold=-10
            [/resistance]
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define TALYA_RESIST_DMG VARIANT_NAME
    {TALYA_ADVANCEMENT 0 110 (
        id=talya_resist_dmg
        description= _ "gains +10% physical resistance"
        image=attacks/heater-shield.png
        [effect]
            apply_to=resistance
            [resistance]
                blade=-10
                pierce=-10
                impact=-10
            [/resistance]
        [/effect]
        [effect]
            apply_to=attack
            name=wind blade
            increase_damage=1
        [/effect]
        [effect]
            apply_to=attack
            name=flurry
            increase_attacks=1
        [/effect]
        [effect]
            apply_to=attack
            name=whirlwind
            increase_damage=1
        [/effect]
    ) {VARIANT_NAME}}
#enddef

#define TALYA_BASE
    id=Mistral Maiden
    race=human
    gender=female
    name= _ "Mistral Maiden"
    image="units/humans/talya.png"
    hitpoints=43
    movement_type=windmage
    movement=6
    experience=80
    level=2
    alignment=neutral
    advances_to=null
    cost=60
    usage=healer
    description= _ "Of the four 'elemental' magics of fire, water, earth, and air, mastery of the wind is often the most difficult for human magi to attain. It, in of itself, is of less practical use than the other three - the heat of fire wards off the cold winters and lights the dark nights - flows of water heal the wounded and cleanse the body - and towers of earth shelter their denizens and protect the weak from harm. But wind has neither the force of fire nor the sturdiness of earth - it is the element of journey and freedom, of transient life and constant change. Those who have mastered the wind are the wardens of the mystic flows of energy throughout the worlds and are more attuned to their spiritual and telestic natures than other magi."
    [abilities]
        {ABILITY_BLITZ2}
        {ABILITY_SKIRMISHER}
    [/abilities]
    {DEFENSE_ANIM "units/humans/talya.png" "units/humans/talya.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
    die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
    [attack]
        name=wind blade
        description=_"wind blade"
        icon=attacks/sword-holy.png
        type=blade
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
        range=melee
        damage=6
        number=3
    [/attack]
    [attack]
        name=flurry
        description=_"flurry"
        icon=attacks/fireball.png
        type=pierce
        range=ranged
        damage=4
        number=7
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
    [/attack]
    [attack]
        name=whirlwind
        description=_"whirlwind"
        icon=attacks/fireball.png
        type=impact
        range=ranged
        damage=12
        number=2
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]
    {PIERCE "flurry"}
    {BLITZ2}
    {BLITZ}
    [attack_anim]
        [filter_attack]
            name=wind blade
        [/filter_attack]
        start_time=-200

        [frame]
            image="units/humans/talya.png:25"
        [/frame]
        [frame]
            image="units/humans/talya.png:[100,150,50*2]"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
        [frame]
            image="units/humans/talya.png:25"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=flurry
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            image="projectiles-new/flurry[1~3].png:75"
            image_diagonal="projectiles-new/flurry-ne[1~3].png:75"
            offset=0.5
        [/missile_frame]
        start_time=-225
        [frame]
            image="units/humans/talya.png:75"
            sound=spear.ogg
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=whirlwind
        [/filter_attack]
        missile_start_time=-450
        [missile_frame]
            duration=500
            offset=1.0
            halo="projectiles/sand-storm-[1~8].png:40"
            auto_vflip=no
        [/missile_frame]
        {SOUND:HIT_AND_MISS gust.wav gust.wav -450}
        [frame]
            image="units/humans/talya.png:75"
        [/frame]
    [/attack_anim]
#enddef
[unit_type]
    {TALYA_BASE}
    hitpoints=43
    experience=80
    level=2
    [variation]
        {TALYA_BASE}
        hide_help=yes
        variation_id=MM2
        inherit=no
        level=2
        hitpoints=43
        experience=80
        name= _ "Mistral Maiden"
        {TALYA_ATTK_BONUS MM3ATTK}
        {TALYA_DEF_BONUS MM3DEF}
    [/variation]
    [variation]
        {TALYA_BASE}
        hide_help=yes
        variation_id=MM3ATTK
        inherit=no
        level=3
        hitpoints=43
        experience=120
        name= _ "Sky Warden"
        {TALYA_DEF_BONUS MM3}
        {TALYA_RESIST_NODMG MM3}
    [/variation]
    [variation]
        {TALYA_BASE}
        hide_help=yes
        variation_id=MM3DEF
        inherit=no
        level=3
        hitpoints=43
        experience=120
        name= _ "Sky Warden"
        {TALYA_ATTK_BONUS MM3}
        {TALYA_RESIST_DMG MM3}
    [/variation]
    [variation]
        {TALYA_BASE}
        hide_help=yes
        variation_id=MM3
        inherit=no
        level=3
        hitpoints=43
        experience=150
        name= _ "Sky Warden"
        {TALYA_RESIST_NODMG MM4}
        {TALYA_HEALTH MM4}
    [/variation]

    [variation]
        {TALYA_BASE}
        hide_help=yes
        variation_id=MM4
        inherit=no
        level=4
        hitpoints=43
        experience=200
        name= _ "Aetherial Sylph"
        {TALYA_COUNTER MMFINAL}
        {TALYA_PIERCE MMFINAL}
        {BLITZ_ABILITY MMFINAL}
    [/variation]
    [variation]
        {TALYA_BASE}
        hide_help=yes
        variation_id=MMFINAL
        inherit=no
        level=4
        hitpoints=43
        experience=100
        name= _ "Aetherial Sylph"
        {AMLA_WINDMAGE}
    [/variation]
[/unit_type]


#textdomain wesnoth-units
[unit_type]
    id=Prison Guard
    name= _ "Prison Guard"
    race=human
    image="units/human-loyalists/royalguard.png"
    profile="portraits/humans/royal-guard.png"
    hitpoints=63
    movement_type=smallfoot
    movement=5
    experience=100
    level=2
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=43
    usage=fighter
    description= _ ""
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/human-loyalists/royalguard-defend-2.png" "units/human-loyalists/royalguard-defend-1.png" {SOUND_LIST:HUMAN_HIT} }
    [resistance]
        blade=80
        impact=80
    [/resistance]
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/humans/transparent/royal-guard.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/humans/transparent/royal-guard.png"
    [/portrait]
    [attack]
        name=sword
        description=_"longsword"
        icon=attacks/greatsword-human.png
        type=blade
        range=melee
        damage=13
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-300
        [frame]
            image="units/human-loyalists/royalguard.png:50"
            offset=0.0~0.1
        [/frame]
        [frame]
            image="units/human-loyalists/royalguard-defend-1.png:50"
            offset=0.1~0.15
        [/frame]
        [frame]
            image="units/human-loyalists/royalguard-attack-sword[1~5].png:[100,75,100,50,75]"
            offset=0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
        [frame]
            image="units/human-loyalists/royalguard.png:75"
            offset=0.2~0.0
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Ashen Wose
    name= _ "Ashen Wose"
    race=undead
	image="units/undead/soulless-wose.png"
    {TRAIT_FEARLESS_MUSTHAVE}
    hitpoints=51
    movement_type=treefolk
    movement=4
    experience=50
    level=-1
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=13
    usage=fighter
    description= _ ""
    [resistance]
        arcane=50
		cold=30
		blade=70
    [/resistance]
    [attack]
        name=crush
        description=_"crush"
        icon=attacks/touch-zombie.png
        type=impact
        range=melee
        damage=13
        number=2
        [specials]
            {WEAPON_SPECIAL_CHAOS}
        [/specials]
    [/attack]

    die_sound=wose-die.ogg
    {DEFENSE_ANIM "units/undead/soulless-wose-defend.png" "units/undead/soulless-wose.png" wose-hit.ogg }
    [death]
        start_time=0
        [frame]
            image="units/undead/soulless-wose-die-[1~4].png:150,units/undead/soulless-die-[5~10].png:150"
        [/frame]
    [/death]
	[attack_anim]
        [filter_attack]
            name=crush
        [/filter_attack]
		direction=s
        start_time=-500
        {SOUND:HIT_AND_MISS wose-attack.ogg wose-miss.ogg -500}
        [frame]
            image="units/undead/soulless-wose-attack-s.png:400"
        [/frame]
    [/attack_anim]
	[attack_anim]
        [filter_attack]
            name=crush
        [/filter_attack]
		direction=n
        start_time=-500
        {SOUND:HIT_AND_MISS wose-attack.ogg wose-miss.ogg -500}
        [frame]
            image="units/undead/soulless-wose-attack-n.png:400"
        [/frame]
    [/attack_anim]
	[attack_anim]
        [filter_attack]
            name=crush
        [/filter_attack]
		direction=se,sw,ne,nw
        start_time=-500
        {SOUND:HIT_AND_MISS wose-attack.ogg wose-miss.ogg -500}
        [frame]
            image="units/undead/soulless-wose-attack.png:400"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-units
[unit_type]
    id=Black Spirit
    name= _ "Black Spirit"
    race=undead
    image="units/undead/ghost-s-2.png"
    profile=portraits/undead/ghost.png
    hitpoints=20
    movement_type=undeadspirit
    movement=5
    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."
    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]
	[resistance]
		blade=70
		impact=70
		pierce=70
		arcane=50
    [/resistance]
	[defense]
        impassable=50
    [/defense]
    [attack]
        name=touch
        description=_"touch"
        icon=attacks/touch-undead.png
        type=impact
        range=melee
        damage=7
        number=3
    [/attack]
    [attack]
        name=wail
        description=_"wail"
        type=impact
        range=ranged
        damage=6
        number=3
    [/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-Genesis
[unit_type]
    id=Phantasm1
    name= _ "Phantasm"
    race=undead
    image="units/undead/wraith-s.png"
    profile=portraits/undead/wraith.png
    hitpoints=35
    movement_type=undeadspirit
    movement=7
    experience=100
    level=2
    alignment=chaotic
    advances_to=null
    hide_help=true
	{AMLA_DEFAULT}
    cost=38
    usage=scout
    description= _ ""
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/undead/transparent/wraith.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/undead/transparent/wraith.png"
    [/portrait]
    [attack]
        name=baneblade
        description=_"baneblade"	# wmllint: no spellcheck (until name->id)
        type=blade
        range=melee
        damage=9
        number=4
        [specials]
            {WEAPON_SPECIAL_TERROR}
        [/specials]
    [/attack]
    [standing_anim]
        start_time=0
        alpha=0.8~0.4:1100,0.4~0.6:450,0.6~0.4:450,0.4~0.8:1100
        [frame]
            image="units/undead/wraith-s-[1~4,1~4,1~4,1~4].png:200"
        [/frame]
    [/standing_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/undead/wraith-s-2.png:1,units/undead/wraith-s-attack-1.png:250,units/undead/wraith-s-2.png:1
        [/frame]
    [/defend]

    [attack_anim]
        [filter_attack]
            name=baneblade
        [/filter_attack]
        alpha=0.8~0.5:126,0.5~0.8:126
        offset=0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0
        start_time=-250
        [frame]
            image="units/undead/wraith-s-attack-[1~5].png:[150,100*2,90,80]"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -200}
        [frame]
            image="units/undead/wraith-s-defend-1.png:50"
        [/frame]
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-Genesis
[unit_type]
    id=Phantasm2
    name= _ "Phantasm"
    race=undead
    image="units/undead/shadow-s-2.png"
    profile=portraits/undead/shadow.png
    hitpoints=33
    movement_type=undeadspirit
    movement=7
    experience=100
    level=2
    alignment=chaotic
    advances_to=null
    hide_help=true
	{AMLA_DEFAULT}
    cost=38
    usage=scout
    description= _ ""
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/undead/transparent/shadow.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/undead/transparent/shadow.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/shadow-s-2.png:1,units/undead/shadow-s-attack-1.png:250,units/undead/shadow-s-2.png:1
            [/frame]
        [/if]
        [else]
            direction=n,ne,nw
            [frame]
                image=units/undead/shadow-n-2.png:1,units/undead/shadow-n-attack-1.png:250,units/undead/shadow-n-2.png:1
            [/frame]
        [/else]
    [/defend]

    [attack]
        name=claws
        description=_"claws"
        type=blade
        icon=attacks/claws-undead.png
        range=melee
        damage=12
        number=3
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=claws
        [/filter_attack]
        start_time=-500
        offset=0.0~1.0:550,0.0:225
        alpha=0.8~0.7:350,0.7~0.0:200,0.0~0.8:225
        direction=n,ne,nw

        [if]
            direction=s,se,sw
            [frame]
                image="units/undead/shadow-s-2.png:25"
            [/frame]
            [frame]
                image="units/undead/shadow-s-attack-[1~6,2,1].png:[75*2,50*2,75,200,100*2]"
            [/frame]
            [frame]
                image="units/undead/shadow-s-2.png:25"
            [/frame]
        [/if]
        [else]
            direction=n,ne,nw
            [frame]
                image="units/undead/shadow-s-2.png:25"
            [/frame]
            [frame]
                image="units/undead/shadow-s-attack-[1~6,2,1].png:[75*2,50*2,75,200,100*2]"
            [/frame]
            [frame]
                image="units/undead/shadow-s-2.png:25"
            [/frame]
        [/else]
        attack_sound_start_time=-325
        [attack_sound_frame]
            duration=50
            sound=wail-sml.wav
        [/attack_sound_frame]
        [if]
            hits=yes
            [attack_sound_frame]
                sound=claws.ogg
            [/attack_sound_frame]
        [/if]
        [else]
            hits=no
            [attack_sound_frame]
                sound={SOUND_LIST:MISS}
            [/attack_sound_frame]
        [/else]
    [/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/shadow-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/shadow-n-[2,1~3,2,1~3,2,1~3,2,1~3].png:250"
        [/frame]
    [/standing_anim]
[/unit_type]