#textdomain wesnoth-utbs
[unit_type]
    id=Flesh Golem
    name= _ "Flesh Golem"
    race=monster
    image="units/monsters/flesh-golem.png"
    profile="portraits/monsters/flesh_golem.png"
    hitpoints=42
    movement_type=largefoot
    [resistance]
        blade=90
        pierce=90
        impact=90
        fire=120
        cold=120
    [/resistance]
    movement=4
    experience=100
    {AMLA_DEFAULT}
    level=2
    alignment=chaotic
    advances_to=null
    cost=30
    usage=fighter
    description= _ "Incredibly strong constructs, flesh golems are created by powerful necromancers from the bodies of fallen warriors. Though these golems dutifully follow every command, and attack their enemies with ceaseless rage, the madness that possesses them has occasionally caused them to turn on their masters."
    {DEFENSE_ANIM "units/monsters/flesh-golem-defend.png" "units/monsters/flesh-golem.png" {SOUND_LIST:TROLL_HIT} }
    die_sound={SOUND_LIST:TROLL_HIT}
    [attack]
        name=smashing frenzy
        description= _"smashing frenzy"
        icon=attacks/fist-golem.png
        type=impact
        [specials]
            {WEAPON_SPECIAL_BERSERK}
        [/specials]
        range=melee
        damage=10
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=smashing frenzy
        [/filter_attack]
        start_time=-300
        offset=0.0:150,0.0~0.6:150,0.6~0.0:250
        swoosh_start_time=-50
        swoosh_offset=0.6
        [if]
            value_second=2,4,6,8,10,12
            [frame]
                image="units/monsters/flesh-golem-attack-b[1~3,1].png:[120,120,150,160]"
            [/frame]
            [swoosh_frame]
                image="misc/blank-hex.png:1,units/monsters/flesh-golem-swoosh-b.png:100,misc/blank-hex.png:1"
                auto_vflip=no
                layer=90
            [/swoosh_frame]
        [/if]
        [else]
            [frame]
                image="units/monsters/flesh-golem-attack-[1~3,1].png:[120,120,150,160]"
            [/frame]
            [swoosh_frame]
                image="misc/blank-hex.png:1,units/monsters/flesh-golem-swoosh.png:100,misc/blank-hex.png:1"
                auto_vflip=no
                layer=90
            [/swoosh_frame]
        [/else]
        {SOUND:HIT_AND_MISS fist.ogg {SOUND_LIST:MISS} -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs
[unit_type]
    id=Ixthala Demon
    name= _ "Ixthala Demon"
    # wmllint: general spelling Ixthala
    race=monster
    image="units/monsters/demon.png"
    {DEFENSE_ANIM "units/monsters/demon-defend2.png" "units/monsters/demon-defend.png" {SOUND_LIST:DRAKE_HIT} }
    hitpoints=60
    movement_type=lizard
    [resistance]
        fire=70
    [/resistance]
    movement=6
    experience=150
    {AMLA_DEFAULT}
    level=3
    alignment=chaotic
    advances_to=null
    cost=50
    usage=fighter
    description= _ "Are these monsters some beast-soldiers of a bygone era? Or are they spirits from another plane of existence? Knowledge of their origins is lost, all that is known is that they can spell trouble for those who go poking around in caverns and ruins."
    die_sound=drake-die.ogg
    [attack]
        name=flaming sword
        description= _"flaming sword"
        icon=attacks/sword-flaming.png
        type=fire
        range=melee
        damage=12
        number=4
    [/attack]
    [attack_anim]
        [filter_attack]
            name=flaming sword
        [/filter_attack]
        start_time=-250
        offset=0:100,0~0.5:100,0.5~0.7:100,0.7~0:100,0.
        [frame]
            image="units/monsters/demon-attack-[1~3,1].png:[100,100,100,100]"
        [/frame]
        flame_start_time=0
        [if]
            hits=yes
            [frame]
                image="units/monsters/demon.png:350"
            [/frame]
            [flame_frame]
                image="projectiles/fire-burst-small-[1~8].png~SCALE(80,80):[50*8]"
                offset=1.0
                auto_vflip=no
                layer=10
            [/flame_frame]
        [/if]
        {SOUND:HIT_AND_MISS torch.ogg torch-miss.ogg 75}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs
# This is the same as the core Mudcrawler, except that it has a 6-1 melee attack
[unit_type]
    [base_unit]
        id=Mudcrawler
    [/base_unit]
    id=Small Mudcrawler
    name= _ "Small Mudcrawler"

    # The first [attack] and [attack_anim] block assure the ranged attack animation of the base unit is kept
    [attack]
    [/attack]
    [attack]
        name=fist
        #textdomain wesnoth-units
        description= _"fist"
        #textdomain wesnoth-utbs
        icon=attacks/mud-glob.png
        type=impact
        range=melee
        damage=6
        number=1
    [/attack]
    [attack_anim]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fist
        [/filter_attack]
        start_time=-400
        [frame]
            image="units/monsters/mudcrawler.png:200"
        [/frame]
        [frame]
            image="units/monsters/mudcrawler-attack-[1,2,1].png:[100*2,75]"
        [/frame]
        [frame]
            image="units/monsters/mudcrawler-defend-1.png:125"
        [/frame]
        [frame]
            image="units/monsters/mudcrawler.png:25"
        [/frame]
        {SOUND:HIT_AND_MISS mud-fist.ogg mud-fist-miss.ogg -400}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Naga Guardian
    name= _ "Naga Guardian"
    [base_unit]
        id=Naga Guard
    [/base_unit]
    cost=16
    advances_to=Naga Warden
    [attack]
        name=mace
        #textdomain wesnoth-units
        description= _"mace"
        #textdomain wesnoth-utbs
        type=impact
        range=melee
        damage=7
        number=3
    [/attack]
[/unit_type]

[unit_type]
    id=Naga Warden
    name= _ "Naga Warden"
    [base_unit]
        id=Naga Shield Guard
    [/base_unit]
    cost=48
    advances_to=Naga Sentinel
    [attack]
        name=mace
        #textdomain wesnoth-units
        description= _"mace"
        #textdomain wesnoth-utbs
        type=impact
        range=melee
        damage=12
        number=3
    [/attack]
[/unit_type]

[unit_type]
    id=Naga Sentinel
    name= _ "Naga Sentinel"
    [base_unit]
        id=Naga High Guard
    [/base_unit]
    cost=100
    [attack]
        name=mace
        #textdomain wesnoth-units
        description= _"mace"
        #textdomain wesnoth-utbs
        type=impact
        range=melee
        damage=12
        number=4
    [/attack]
[/unit_type]


#textdomain wesnoth-utbs
[unit_type]
    id=Naga Hunter
    name= _ "Naga Hunter"
    race=naga
    image="units/nagas/hunter.png"
    profile="portraits/nagas/naga-hunter.png"
    hitpoints=33
    movement_type=naga
    movement=7
    experience=50
    level=1
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=15
    usage=archer
    description= _ "Naga Hunters are naga who are skilled at hunting with a bow. Since the naga are naturally resistant to poison, they have no qualms about hunting with poisoned arrows. These two foot long shafts, tipped with a potent poison, have been known to slay many kinds of prey."
    die_sound=naga-die.ogg
    {DEFENSE_ANIM_RANGE "units/nagas/hunter-melee-defend.png" "units/nagas/hunter-attack-melee-1.png" {SOUND_LIST:NAGA_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/nagas/hunter-defend.png" "units/nagas/hunter.png" {SOUND_LIST:NAGA_HIT} ranged}
    [attack]
        name=sword
        #textdomain wesnoth-units
        description= _"sword"
        type=blade
        range=melee
        damage=4
        number=2
        icon=attacks/sword-orcish.png
    [/attack]
    [attack]
        name=bow
        description= _"bow"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=8
        number=2
        icon=attacks/bow-orcish.png
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=bow
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]
        start_time=-410
        [frame]
            image="units/nagas/hunter-attack-ranged-[1~6].png:[65*4,100,150]"
        [/frame]
        {SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -410}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-450
        [frame]
            image="units/nagas/hunter-attack-melee-[1~4].png:[100*2,150,200]"
        [/frame]
        [frame]
            duration=100
            image="units/nagas/hunter-attack-melee-1.png"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
[/unit_type]


[unit_type]
    [base_unit]
        id=Dark Assassin Uncloaked
    [/base_unit]
    id=Dark Assassin Cloaked
    race=hidden_race
    image=units/other/dark-assassin.png
    profile=portraits/cloaked.png
[/unit_type]


#textdomain wesnoth-utbs
[unit_type]
    id=Dark Assassin Uncloaked
    name= _ "Dark Assassin"
    race=quenoth
    do_not_list=yes
    image=units/other/dark-assassin-uncloaked.png
    profile=portraits/uncloaked.png
    [defend]
        start_time=-126
        hits=yes
        [frame]
            image=units/other/dark-assassin-defend-1.png:1,units/other/dark-assassin-defend-2.png:250,units/other/dark-assassin-defend-1.png:1
        [/frame]
        hit_sound_start_time=-25
        [hit_sound_frame]
            sound={SOUND_LIST:ORC_SMALL_HIT}
        [/hit_sound_frame]
    [/defend]
    [defend]
        start_time=-126
        hits=no
        [frame]
            image=units/other/dark-assassin-defend-1.png:1,units/other/dark-assassin-defend-2-miss.png:250,units/other/dark-assassin-defend-1.png:1
        [/frame]
    [/defend]
    hitpoints=68
    movement_type=elusivefoot
    movement=6
    experience=100
    level=2
    alignment=chaotic
    {AMLA_DEFAULT}
    advances_to=null
    cost=25
    usage=fighter
    description= _ "The Dark Assassin appears and disappears at a moment’s notice. No one knows where he came from or why he acts the way he does, but the trail of death he leaves in his wake is unmistakeable."
    [attack]
        name=dagger
        description= _"dagger"
        icon=attacks/blade-curved.png
        type=blade
        range=melee
        damage=10
        number=3
    [/attack]
    [attack]
        name=knives
        description= _"throwing knives"
        icon=attacks/dagger-thrown-poison-human.png
        type=blade
        range=ranged
        damage=7
        number=4
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    [attack_anim]
        [filter_attack]
            name=knives
        [/filter_attack]

        start_time=-250
        missile_start_time=-100

        [missile_frame]
            duration=100
            image=projectiles/dagger-n.png
            image_diagonal=projectiles/dagger-ne.png
        [/missile_frame]

        [frame]
            image="units/other/dark-assassin.png:700"
        [/frame]

        {SOUND:HIT_AND_MISS throwing-knife.ogg throwing-knife-miss.ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=dagger
        [/filter_attack]

        start_time=-400
        offset=0.0:150,0.0~0.6:250,0.6~0.0:350
        [frame]
            image="units/other/dark-assassin-attack[1~3].png:175"
        [/frame]
        [frame]
            image="units/other/dark-assassin.png:225"
        [/frame]

        {SOUND:HIT_AND_MISS dagger-swish.wav {SOUND_LIST:MISS} -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Archer
    name= _ "Quenoth Archer"
    image=units/quenoth/archer.png
    profile="portraits/quenoth/archer.png"
    race=quenoth
    hitpoints=36
    movement_type=quenoth_horse
    [resistance]
        pierce=120
    [/resistance]
    movement=8
    experience=90
    level=2
    alignment=lawful
    advances_to=Quenoth Marksman
    cost=33
    usage=scout
    undead_variation=mounted
    description= _ "With the open sands providing much less protection than the old forests did, the wide ranks of elvish archers that once formed the core of the elvish military have all but disappeared. Instead, the few who still dedicate themselves to the traditional weapon of their ancestors practice the art from the saddle, allowing them to more easily avoid the perils of melee combat."
    die_sound=horse-die.ogg
    [abilities]
        {ABILITY_DISENGAGE}
    [/abilities]
    [attack]
        name=sword
        #textdomain wesnoth-units
        description= _"sword"
        type=blade
        range=melee
        damage=6
        number=3
        icon=attacks/sword-elven.png
        movement_used=0
    [/attack]
    [attack]
        name=bow
        description= _"bow"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=7
        number=4
        icon=attacks/bow-elven.png
        movement_used=0
    [/attack]
    {DEFENSE_ANIM "units/quenoth/archer-defend2.png" "units/quenoth/archer-defend1.png" {SOUND_LIST:HORSE_HIT}}
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/archer.png"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=bow
        [/filter_attack]
        missile_start_time=-100
        [missile_frame]
            duration=100
            image=projectiles/missile-n.png
            image_diagonal=projectiles/missile-ne.png
        [/missile_frame]
        start_time=-380
        [frame]
            image=units/quenoth/archer.png:470
        [/frame]
        {SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -380}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Champion
    name= _ "Quenoth Champion"
    race=quenoth
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_QUICK}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    image=units/quenoth/champion.png
    profile="portraits/quenoth/champion.png"
    hitpoints=55
    movement_type=quenoth_foot
    movement=5
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=44
    usage=fighter
    description= _ "Standing at the forefront of most Quenoth spear lines, Champions are those who have mastered the use of the glaive to near perfection. Perhaps only slightly lacking in finesse in strategy, these elves more than compensate with raw power and can force their way through all but the most secure of defenses."
    die_sound={SOUND_LIST:ELF_HIT}
    [abilities]
        {ABILITY_FORMATION}
    [/abilities]
    [attack]
        name=glaive
        description= _"glaive"
        type=pierce
        range=melee
        damage=14
        number=3
        icon=attacks/glaive.png
        [specials]
            {WEAPON_SPECIAL_FIRSTSTRIKE}
        [/specials]
    [/attack]
    [attack]
        name=glaive
        description= _"glaive"
        type=blade
        range=melee
        damage=9
        number=4
        icon=attacks/glaive.png
    [/attack]
    {DEFENSE_ANIM "units/quenoth/champion-defend2.png" "units/quenoth/champion-defend1.png" {SOUND_LIST:ELF_HIT}}
    [attack_anim]
        [filter_attack]
            name=glaive
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/champion.png"
        [/frame]
        {SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Corrupted Quenoth Elf
    name= _ "Corrupted Elf"
    race=quenoth
    image=units/quenoth/corrupted-elf.png
    hitpoints=60
    movement_type=quenoth_foot
    movement=5
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=100
    usage=fighter
    do_not_list=yes
    description= _ "Imbued with a dark spirit these corrupted elves combine unhuman strength with potent magics to create formidable opponents. Though the elvish body often decays quickly, these abominations are potent weapons of the undead lords."
    die_sound={SOUND_LIST:ELF_HIT}
    [attack]
        name=glaive
        description= _"glaive"
        type=pierce
        range=melee
        damage=12
        number=4
        icon=attacks/spear.png
        [specials]
            {WEAPON_SPECIAL_FIRSTSTRIKE}
        [/specials]
    [/attack]
    [attack]
        name=magic
        description= _"magic"
        icon=attacks/dark-missile.png
        type=cold
        range=ranged
        damage=12
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/corrupted-elf.png" "units/quenoth/corrupted-elf.png" {SOUND_LIST:ELF_HIT}}
    [attack_anim]
        [filter_attack]
            name=glaive
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/corrupted-elf.png"
        [/frame]
        {SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=magic
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image=projectiles/darkmissile-n.png
            image_diagonal=projectiles/darkmissile-ne.png
        [/missile_frame]
        start_time=-200
        [frame]
            image=units/quenoth/corrupted-elf.png:200
        [/frame]
        {SOUND:HIT_AND_MISS magic-dark.ogg magic-dark-miss.ogg -200}
    [/attack_anim]
[/unit_type]

[unit_type]
    id=Defeated Corrupted Quenoth Elf
    image=units/quenoth/corrupted-elf-defeated.png
    [base_unit]
        id=Corrupted Quenoth Elf
    [/base_unit]
    do_not_list=yes
    hide_help=yes
[/unit_type]


#textdomain wesnoth-utbs
[unit_type]
    id=Divine Avatar
    name= _ "female^Divine Avatar"
    gender=female
    race=quenoth
    image=units/quenoth/eloh.png
    # The baseframe is larger than usual to make compositing with the back haloin animations trivial.
    bar_offset_x,bar_offset_y=0,0
    profile=portraits/eloh.png
    hitpoints=60
    movement_type=woodland
    movement=1
    experience=100
    level=2
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=100
    usage=null
    do_not_list=yes
    description= _ "Divine Avatars only appear in time of great need. Forms of the Gods themselves, made real in this world for a time, blessed are those who are lucky enough to view such images of power and perfection."
    {DEFENSE_ANIM "halo/eloh-halo-bottom.png~BLIT(halo/eloh-halo-back.png)~BLIT(units/quenoth/eloh.png,0,0)" "halo/eloh-halo-bottom.png~BLIT(halo/eloh-halo-back.png)~BLIT(units/quenoth/eloh.png,0,0)" magicmissile.wav}
    die_sound=magic-holy-miss-2.ogg
    [attack]
        name=fist
        #textdomain wesnoth-units
        description= _"fist"
        type=arcane
        range=melee
        damage=7
        number=3
    [/attack]
    [attack]
        name=lightbeam
        description= _"lightbeam"	# wmllint: no spellcheck (until name->id)
        #textdomain wesnoth-utbs
        type=arcane
        range=ranged
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=11
        number=3
    [/attack]

    [standing_anim]
        start_time=0
        [frame]
            image="halo/eloh-halo-bottom.png~BLIT(halo/eloh-halo-back.png)~BLIT(units/quenoth/eloh.png,0,0):100"
        [/frame]
    [/standing_anim]

    [attack_anim]
        [filter_attack]
            name=fist
        [/filter_attack]
        start_time=-250
        [frame]
            image="halo/eloh-halo-bottom.png~BLIT(halo/eloh-halo-back.png)~BLIT(units/quenoth/eloh.png,0,0):400"
        [/frame]
        {SOUND:HIT_AND_MISS fist.ogg {SOUND_LIST:MISS} -100}
    [/attack_anim]

    [attack_anim]
        [filter_attack]
            name=lightbeam
        [/filter_attack]
        {MISSILE_FRAME_LIGHT_BEAM}
        start_time=-350
        [frame]
            image="halo/eloh-halo-bottom.png~BLIT(halo/eloh-halo-back.png)~BLIT(units/quenoth/eloh.png,0,0):500"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:HOLY} {SOUND_LIST:HOLY_MISS} -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs
[unit_type]
    [base_unit]
        id=Divine Avatar
    [/base_unit]
    id=Divine Incarnation
    name= _ "female^Divine Incarnation"
    hitpoints=70
    movement=4
    experience=150
    level=3
    do_not_list=yes
    description= _ "Divine Incarnations are said to be the closest thing to a god’s actual presence in this world. They can be both awe-inspiring and terrifying."
    [attack]
        damage=9
    [/attack]
    [attack]
        damage=14
    [/attack]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Druid
    name= _ "female^Quenoth Druid"
    race=quenoth
    gender=female
    image=units/quenoth/druid.png
    profile="portraits/quenoth/druid.png"
    hitpoints=45
    movement_type=quenoth_foot
    movement=5
    experience=180
    level=3
    alignment=neutral
    advances_to=Quenoth Shyde
    cost=48
    usage=healer
    [abilities]
        {UTBS_ABILITY_CURES}
    [/abilities]
    description= _ "Worshippers of the Goddess of Light, Eloh, Druids are considered mysterious even by other elves of the same order. Part of this stems from the Druids’ unusual connection with nature, something nearly wholly absent in a world pervaded by scorched sand. In a brutish world where others train themselves for combat and survival, these elves are the few who remain as healers and caretakers."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [attack]
        name=staff
        #textdomain wesnoth-units
        description= _"staff"
        #textdomain wesnoth-utbs
        type=impact
        range=melee
        damage=9
        number=2
        range=melee
        icon=attacks/druidstaff.png
    [/attack]
    [attack]
        name=sand
        description= _"sand"
        type=impact
        range=ranged
        damage=6
        number=3
        icon=attacks/sand-storm.png
        [specials]
            {WEAPON_SPECIAL_DAZE}
        [/specials]
    [/attack]
    [attack]
        name=thorns
        #textdomain wesnoth-units
        description= _"thorns"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=7
        number=4
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/druid-defend2.png" "units/quenoth/druid-defend1.png" {SOUND_LIST:ELF_FEMALE_HIT} }
    [healing_anim]
        start_time=-250
        [frame]
            image="units/quenoth/druid.png:50"
        [/frame]
        [frame]
            image="units/quenoth/druid.png:350"
            halo=halo/elven/shaman-heal-halo-[1~7].png
        [/frame]
        [frame]
            image="units/quenoth/druid.png:50"
        [/frame]
    [/healing_anim]
    [attack_anim]
        [filter_attack]
            name=staff
        [/filter_attack]
        start_time=-250
        [frame]
            image="units/quenoth/druid.png:400"
        [/frame]
        {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sand
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=320
            offset=0.75~1.1,1.1~1.25
            halo="projectiles/sand-storm-[1~8].png:40"
            auto_vflip=no
        [/missile_frame]
        start_time=-320
        [frame]
            image="units/quenoth/druid.png:450"
            sound=petrified.ogg
        [/frame]
    [/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/quenoth/druid.png:500"
            halo="halo/elven/nature-halo[1~8].png"
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Dustbok
    #po: Made-up animal name derived from 'dust' (sand) and 'bok' as in real-world steenbok or springbok antelope
    name= _ "Dustbok"
    image=units/quenoth/dustbok.png
    race=monster
    hitpoints=22
    movement_type=quenoth_horse
    movement=8
    experience=100
    level=0
    alignment=lawful
    advances_to=null
    cost=12
    usage=scout
    description= _ "Dustboks are nimble, graceful creatures whose timid and peaceful nature stands in sharp contrast to the harsh land in which they live. Because the scorched land cannot support herds or even territorial neighbors, dustboks are solitary wanderers and yet still social, curious, and willing to cooperate with anyone if it leads to food. While this behavior has led to the death of many a foolish dustbok, it has made them excellent partners to the Quenoth Elves, who value their speed and agility."
    die_sound=horse-die.ogg
    [attack]
        name=ram
        #textdomain wesnoth-units
        description= _"ram"
        #textdomain wesnoth-utbs
        type=impact
        range=melee
        damage=4
        number=3
        icon=attacks/blank-attack.png
    [/attack]
    {DEFENSE_ANIM "units/quenoth/dustbok.png" "units/quenoth/dustbok.png" {SOUND_LIST:HORSE_HIT}}
    [attack_anim]
        [filter_attack]
            name=ram
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/dustbok.png"
        [/frame]
        {SOUND:HIT_AND_MISS club.ogg club-miss.ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Fighter
    name= _ "Quenoth Fighter"
    race=quenoth
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_QUICK}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    image=units/quenoth/fighter.png
    profile="portraits/quenoth/fighter.png"
    hitpoints=30
    movement_type=quenoth_foot
    movement=5
    experience=40
    level=1
    alignment=lawful
    advances_to=Quenoth Warrior,Quenoth Flanker
    cost=15
    usage=fighter
    description= _ "Long ago, during more prosperous times, elven warriors favored the use of swords as more elegant, versatile weapons compared to other melee armaments. However, in recent times, the dearth of supplies for smithing has reduced the availability of blade-crafting, necessitating the fashioning of cheaper, more easily repaired weaponry. Quenoth Fighters are remarkably skilled in coordinated groups, where they can counteract the lack of more sophisticated weaponry by forming robust spear ranks capable of repelling nearly any frontal assault."
    die_sound={SOUND_LIST:ELF_HIT}
    [abilities]
        {ABILITY_FORMATION}
    [/abilities]
    [attack]
        name=spear
        #textdomain wesnoth-units
        description= _"spear"
        #textdomain wesnoth-utbs
        type=pierce
        range=melee
        damage=9
        number=2
        icon=attacks/spear.png
        [specials]
            {WEAPON_SPECIAL_FIRSTSTRIKE}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/fighter-defend-2.png" "units/quenoth/fighter-defend-1.png" {SOUND_LIST:ELF_HIT}}
    [attack_anim]
        [filter_attack]
            name=spear
        [/filter_attack]
        offset=0.0:130,0.0~0.6:170,0.6~0.0:230
        start_time=-300
        [frame]
            image="units/quenoth/fighter-attack[1,2,3,4,5].png:[80,70,100,50,230]"
        [/frame]
        {SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
    [/attack_anim]
[/unit_type]

#define QUENOTH_FIGHTER_VARIANT SUFFIX_NUMBER COST
    [unit_type]
        id=Quenoth Fighter{SUFFIX_NUMBER}
        [base_unit]
            id=Quenoth Fighter
        [/base_unit]
        hide_help=yes
        do_not_list=yes
        cost={COST}
    [/unit_type]
#enddef

{QUENOTH_FIGHTER_VARIANT  1 16}
{QUENOTH_FIGHTER_VARIANT  2 17}
{QUENOTH_FIGHTER_VARIANT  3 18}
{QUENOTH_FIGHTER_VARIANT  4 19}
{QUENOTH_FIGHTER_VARIANT  5 20}
{QUENOTH_FIGHTER_VARIANT  6 21}
{QUENOTH_FIGHTER_VARIANT  7 22}
{QUENOTH_FIGHTER_VARIANT  8 23}
{QUENOTH_FIGHTER_VARIANT  9 24}
{QUENOTH_FIGHTER_VARIANT 10 25}

#undef QUENOTH_FIGHTER_VARIANT


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Flanker
    name= _ "Quenoth Flanker"
    race=quenoth
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_QUICK}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    image=units/quenoth/flanker.png
    profile="portraits/quenoth/flanker.png"
    hitpoints=43
    movement_type=quenoth_foot
    movement=5
    experience=90
    level=2
    alignment=lawful
    advances_to=Quenoth Ranger
    cost=28
    usage=fighter
    description= _ "Some fighters find that their true talents lie not within rigid spear ranks, but out in the sands, striking at the flanks and rear of enemy forces. Fast and nimble, these elves make use of the weaknesses in enemy formations to disrupt their lines and sow chaos on the battlefield. In more cutthroat conflicts, Flankers even rely on the use of poison — a tool whose use was frowned on by their ancestors — to cripple their foes before charging in for the finish."
    die_sound={SOUND_LIST:ELF_HIT}
    [abilities]
        {ABILITY_SKIRMISHER}
    [/abilities]
    [attack]
        name=sword
        #textdomain wesnoth-units
        description= _"sword"
        #textdomain wesnoth-utbs
        type=blade
        range=melee
        damage=8
        number=4
        icon=attacks/sword-elven.png
    [/attack]
    [attack]
        name=blowgun
        description= _"blowgun"
        type=pierce
        range=ranged
        damage=2
        number=4
        icon=attacks/blowgun.png
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/flanker-defend2.png" "units/quenoth/flanker-defend1.png" {SOUND_LIST:ELF_HIT}}
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/flanker.png"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=blowgun
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/missile-n.png~SCALE_SHARP(36,36)"
            image_diagonal="projectiles/missile-ne.png~SCALE_SHARP(36,36)"
        [/missile_frame]
        start_time=-300
        [frame]
            image="units/quenoth/flanker.png:450"
        [/frame]
        {SOUND:HIT_AND_MISS crossbow.ogg crossbow-miss.ogg -300}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Marksman
    name= _ "Quenoth Marksman"
    image=units/quenoth/marksman.png
    profile="portraits/quenoth/marksman.png"
    race=quenoth
    hitpoints=46
    movement_type=quenoth_horse
    [resistance]
        pierce=120
    [/resistance]
    movement=8
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=44
    usage=scout
    undead_variation=mounted
    description= _ "In times past, the elves’ supremacy at archery was unquestioned among the other races of the Great Continent. With archery being less viable in a land of scarce cover, however, the skills of the few remaining elven bowmen became suspect, to the point that even their brethren began to believe that archery was more of an outdated relic than a practical tool for battle.

A simple glance at a Quenoth Marksman in action would be enough to dispel this foolish train of thought. Capable of the same legendary feats as their ancestors, these master archers can achieve the same speed and precision as the Sharpshooters of old, all while in full gallop on horseback."
    die_sound=horse-die.ogg
    [abilities]
        {ABILITY_DISENGAGE}
    [/abilities]
    [attack]
        name=sword
        #textdomain wesnoth-units
        description= _"sword"
        type=blade
        range=melee
        damage=6
        number=3
        icon=attacks/sword-elven.png
        movement_used=0
    [/attack]
    [attack]
        name=bow
        description= _"bow"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=9
        number=5
        icon=attacks/bow-elven.png
        movement_used=0
        [specials]
            {WEAPON_SPECIAL_MARKSMAN}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/marksman.png" "units/quenoth/marksman.png" {SOUND_LIST:HORSE_HIT}}
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/marksman.png"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=bow
        [/filter_attack]
        missile_start_time=-100
        [missile_frame]
            duration=100
            image=projectiles/missile-n.png
            image_diagonal=projectiles/missile-ne.png
        [/missile_frame]
        start_time=-380
        [frame]
            image=units/quenoth/marksman.png:470
        [/frame]
        {SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -380}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Mystic
    name= _ "female^Quenoth Mystic"
    race=quenoth
    gender=female
    image=units/quenoth/mystic/mystic.png
    profile="portraits/quenoth/mystic.png"
    hitpoints=25
    movement_type=quenoth_foot
    movement=5
    experience=28
    level=1
    alignment=neutral
    advances_to=Quenoth Shaman,Quenoth Sun Singer
    cost=16
    usage=healer
    [abilities]
        {UTBS_ABILITY_HEALS}
    [/abilities]
    description= _ "Like their ancestors, Quenoth Mystics are those who devote themselves to the natural energies that flow through body of Irdya. In the harsh, barren wastelands, however, these elves can no longer rely on the once vast forests from which their forebears drew much of their strength. Instead, sand and sun are the source of the elves’ new powers, which they employ to great effect in their homes in the deserts."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [attack]
        name=staff
        #textdomain wesnoth-units
        description= _"staff"
        #textdomain wesnoth-utbs
        type=impact
        range=melee
        damage=4
        number=2
        range=melee
        icon=attacks/druidstaff.png
    [/attack]
    [attack]
        name=sand
        description= _"sand"
        type=impact
        range=ranged
        damage=3
        number=2
        icon=attacks/sand-storm.png
        [specials]
            {WEAPON_SPECIAL_DAZE}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/mystic/mystic-defend-2.png" "units/quenoth/mystic/mystic-defend-1.png" {SOUND_LIST:ELF_FEMALE_HIT} }
    [healing_anim]
        start_time=-450
        [frame]
            image="units/quenoth/mystic/mystic.png:50"
        [/frame]
        [frame]
            image="units/quenoth/mystic/mystic-heal-[1~8].png:70"
            halo=halo/elven/shaman-heal-halo-[1~7].png
        [/frame]
        [frame]
            image="units/quenoth/mystic/mystic.png:50"
        [/frame]
    [/healing_anim]
    [attack_anim]
        [filter_attack]
            name=staff
        [/filter_attack]
        start_time=-250
        [frame]
            image="units/quenoth/mystic/mystic.png:400"
        [/frame]
        {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sand
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=320
            offset=0.75~1.1,1.1~1.25
            halo="projectiles/sand-storm-[1~8].png:40"
            auto_vflip=no
        [/missile_frame]
        start_time=-320
        [frame]
            image="units/quenoth/mystic/mystic.png:450"
            sound=petrified.ogg
        [/frame]
    [/attack_anim]
[/unit_type]

#define QUENOTH_MYSTIC_VARIANT SUFFIX_NUMBER COST
    [unit_type]
        id=Quenoth Mystic{SUFFIX_NUMBER}
        [base_unit]
            id=Quenoth Mystic
        [/base_unit]
        hide_help=yes
        do_not_list=yes
        cost={COST}
    [/unit_type]
#enddef

{QUENOTH_MYSTIC_VARIANT  1 19}
{QUENOTH_MYSTIC_VARIANT  2 20}
{QUENOTH_MYSTIC_VARIANT  3 21}
{QUENOTH_MYSTIC_VARIANT  4 22}
{QUENOTH_MYSTIC_VARIANT  5 23}
{QUENOTH_MYSTIC_VARIANT  6 24}
{QUENOTH_MYSTIC_VARIANT  7 25}
{QUENOTH_MYSTIC_VARIANT  8 26}
{QUENOTH_MYSTIC_VARIANT  9 27}
{QUENOTH_MYSTIC_VARIANT 10 28}

#undef QUENOTH_MYSTIC_VARIANT


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Outrider
    name= _ "Quenoth Outrider"
    image=units/quenoth/outrider.png
    profile="portraits/quenoth/outrider.png"
    race=quenoth
    hitpoints=54
    movement_type=quenoth_horse
    [resistance]
        pierce=120
    [/resistance]
    movement=8
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=42
    usage=scout
    undead_variation=mounted
    description= _ "Described as riders who ‘rush like the wind’, Outriders breeze across the sands at unmatched speeds. Unlike their lesser brethren, Outriders train themselves for direct combat, wielding sword and bola to strike at injured units and exposed flanks where enemy lines are weakest. A group of these riders is especially dangerous, for against them, both retreat and attrition are futile, a prospect that is only ruinous in the inhospitable desert."
    die_sound=horse-die.ogg
    [abilities]
        {ABILITY_DISENGAGE}
    [/abilities]
    [attack]
        name=sword
        #textdomain wesnoth-units
        description= _"sword"
        #textdomain wesnoth-utbs
        type=blade
        range=melee
        damage=10
        number=4
        icon=attacks/sword-elven.png
        movement_used=0
    [/attack]
    [attack]
        name=bolas
        description= _"bolas"
        type=impact
        range=ranged
        damage=8
        number=3
        icon=attacks/bolas.png
        movement_used=0
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/outrider-defend2.png" "units/quenoth/outrider-defend1.png" {SOUND_LIST:HORSE_HIT}}
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/outrider.png"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=bolas
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image=projectiles/bolas-n.png
            image_diagonal=projectiles/bolas-ne.png
        [/missile_frame]
        start_time=-300
        [frame]
            image=units/quenoth/outrider.png:400
        [/frame]
        {SOUND:HIT_AND_MISS hatchet.wav hatchet-miss.wav -300}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Pathfinder
    name= _ "Quenoth Pathfinder"
    image=units/quenoth/pathfinder.png
    profile="portraits/quenoth/pathfinder.png"
    race=quenoth
    hitpoints=40
    movement_type=quenoth_horse
    [resistance]
        pierce=120
    [/resistance]
    movement=8
    experience=80
    level=2
    alignment=lawful
    advances_to=Quenoth Outrider
    cost=31
    usage=scout
    undead_variation=mounted
    description= _ "In times past, turning and fleeing from an engagement was a risky tactic, for there were few means to avoid or block enemy archers shooting from behind. In the desert, however, unstable footing and lack of cover make it far more challenging for most fighters to strike from range. The elusive Pathfinders make use of this by riding the exceptionally agile dustboks, who are highly adapted to traversing the dunes and can evade most attacks with their swift movements. The difficulty in pinning these riders down often tries the patience of their enemies, who are provoked into recklessly giving chase — inevitably into many a deadly trap."
    die_sound=horse-die.ogg
    [abilities]
        {ABILITY_DISENGAGE}
    [/abilities]
    [attack]
        name=sword
        #textdomain wesnoth-units
        description= _"sword"
        #textdomain wesnoth-utbs
        type=blade
        range=melee
        damage=7
        number=4
        icon=attacks/sword-elven.png
        movement_used=0
    [/attack]
    [attack]
        name=bolas
        #textdomain wesnoth-units
        description= _"bolas"
        #textdomain wesnoth-utbs
        type=impact
        range=ranged
        damage=8
        number=2
        icon=attacks/bolas.png
        movement_used=0
        [specials]
            {WEAPON_SPECIAL_SLOW}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/pathfinder-defend2.png" "units/quenoth/pathfinder-defend1.png" {SOUND_LIST:HORSE_HIT}}
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/pathfinder.png"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=bolas
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image=projectiles/bolas-n.png
            image_diagonal=projectiles/bolas-ne.png
        [/missile_frame]
        start_time=-300
        [frame]
            image=units/quenoth/pathfinder.png:400
        [/frame]
        {SOUND:HIT_AND_MISS hatchet.wav hatchet-miss.wav -300}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Ranger
    name= _ "Quenoth Ranger"
    race=quenoth
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_QUICK}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    image=units/quenoth/ranger.png
    profile="portraits/quenoth/ranger.png"
    hitpoints=53
    movement_type=quenoth_foot
    movement=6
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=42
    usage=fighter
    description= _ "The title ‘Ranger’ is a little misleading, for these agile elves have little in common with the more pacifistic explorers of nature that once bore the same title. They, instead, are expert fighters who specifically seek combat in order to better hone their skirmishing skills. While they do not possess the brute force of their warrior counterparts, Quenoth Rangers are more proficient at navigating through chaotic fights and are capable of darting in and out of enemy lines to assassinate injured targets. Their masterful use of poison and formidable swordsmanship make these elves especially deadly in the harsh desert terrain, where fewer options to retreat are available."
    die_sound={SOUND_LIST:ELF_HIT}
    [abilities]
        {ABILITY_SKIRMISHER}
    [/abilities]
    [attack]
        name=sword
        #textdomain wesnoth-units
        description= _"sword"
        #textdomain wesnoth-utbs
        type=blade
        range=melee
        damage=10
        number=4
        icon=attacks/sword-elven.png
    [/attack]
    [attack]
        name=blowgun
        description= _"blowgun"
        type=pierce
        range=ranged
        damage=3
        number=5
        icon=attacks/blowgun.png
        [specials]
            {WEAPON_SPECIAL_POISON}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/ranger-defend2.png" "units/quenoth/ranger-defend1.png" {SOUND_LIST:ELF_HIT}}
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/ranger.png"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=blowgun
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/missile-n.png~SCALE_SHARP(36,36)"
            image_diagonal="projectiles/missile-ne.png~SCALE_SHARP(36,36)"
        [/missile_frame]
        start_time=-300
        [frame]
            image="units/quenoth/ranger.png:450"
        [/frame]
        {SOUND:HIT_AND_MISS crossbow.ogg crossbow-miss.ogg -300}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Scout
    name= _ "Quenoth Scout"
    image=units/quenoth/scout.png
    profile="portraits/quenoth/scout.png"
    race=quenoth
    hitpoints=26
    movement_type=quenoth_horse
    movement=8
    experience=40
    level=1
    alignment=lawful
    advances_to=Quenoth Pathfinder,Quenoth Archer
    cost=17
    usage=scout
    undead_variation=mounted
    description= _ "Riding the graceful, agile dustboks, Quenoth Scouts move with unmatched speed across the sands. Their practiced skill with sword and sling are useful abilities to harry enemies and allows them to act as effective hunters and patrolmen."
    die_sound=horse-die.ogg
    [abilities]
        {ABILITY_DISENGAGE}
    [/abilities]
    [attack]
        name=sword
        #textdomain wesnoth-units
        description= _"sword"
        #textdomain wesnoth-utbs
        type=blade
        range=melee
        damage=6
        number=3
        icon=attacks/sword-elven.png
        movement_used=0
    [/attack]
    [attack]
        name=sling
        #textdomain wesnoth-units
        description= _"sling"
        #textdomain wesnoth-utbs
        type=impact
        range=ranged
        damage=8
        number=2
        icon=attacks/sling.png
        movement_used=0
    [/attack]
    {DEFENSE_ANIM "units/quenoth/scout-defend-2.png" "units/quenoth/scout-defend-1.png" {SOUND_LIST:HORSE_HIT}}
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/scout.png"
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sling
        [/filter_attack]
        offset=0.0
        start_time=-400
        [if]
            hits=yes
            {MISSILE_FRAME_STONE_HIT 5 -6}
            [frame]
                image="units/quenoth/scout.png:450"
                sound=sling.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            {MISSILE_FRAME_STONE_MISS 5 -6}
            [frame]
                image="units/quenoth/scout.png:450"
                sound=sling-miss.ogg
            [/frame]
        [/else]
    [/attack_anim]
[/unit_type]

#define QUENOTH_SCOUT_VARIANT SUFFIX_NUMBER COST
    [unit_type]
        id=Quenoth Scout{SUFFIX_NUMBER}
        [base_unit]
            id=Quenoth Scout
        [/base_unit]
        hide_help=yes
        do_not_list=yes
        cost={COST}
    [/unit_type]
#enddef

{QUENOTH_SCOUT_VARIANT  1 18}
{QUENOTH_SCOUT_VARIANT  2 19}
{QUENOTH_SCOUT_VARIANT  3 20}
{QUENOTH_SCOUT_VARIANT  4 21}
{QUENOTH_SCOUT_VARIANT  5 22}
{QUENOTH_SCOUT_VARIANT  6 23}
{QUENOTH_SCOUT_VARIANT  7 24}
{QUENOTH_SCOUT_VARIANT  8 25}
{QUENOTH_SCOUT_VARIANT  9 26}
{QUENOTH_SCOUT_VARIANT 10 27}

#undef QUENOTH_SCOUT_VARIANT


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Shaman
    name= _ "female^Quenoth Shaman"
    race=quenoth
    gender=female
    image=units/quenoth/shaman.png
    profile="portraits/quenoth/shaman.png"
    hitpoints=35
    movement_type=quenoth_foot
    movement=5
    experience=65
    level=2
    alignment=neutral
    advances_to=Quenoth Druid
    cost=33
    usage=healer
    [abilities]
        {UTBS_ABILITY_CURES}
    [/abilities]
    description= _ "Like the elves of old, many Quenoth Elves seek to study the art of medicine and healing rather than hone their abilities in direct battle. Shamans are highly knowledgeable about the sparse plant-life scattered across the deserts and even possess some ability to bolster crop growth, an invaluable skill in a land with few resources. The capacity to foster flora in such an inhospitable environment is a sign of hope as well, a chance that nature might one day rise from its sandy grave and bloom again."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [attack]
        name=staff
        #textdomain wesnoth-units
        description= _"staff"
        #textdomain wesnoth-utbs
        type=impact
        range=melee
        damage=6
        number=2
        range=melee
        icon=attacks/druidstaff.png
    [/attack]
    [attack]
        name=sand
        description= _"sand"
        type=impact
        range=ranged
        damage=6
        number=2
        icon=attacks/sand-storm.png
        [specials]
            {WEAPON_SPECIAL_DAZE}
        [/specials]
    [/attack]
    [attack]
        name=thorns
        #textdomain wesnoth-units
        description= _"thorns"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=6
        number=3
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/shaman-defend2.png" "units/quenoth/shaman-defend1.png" {SOUND_LIST:ELF_FEMALE_HIT} }
    [healing_anim]
        start_time=-250
        [frame]
            image="units/quenoth/shaman.png:50"
        [/frame]
        [frame]
            image="units/quenoth/shaman.png:350"
            halo=halo/elven/shaman-heal-halo-[1~7].png
        [/frame]
        [frame]
            image="units/quenoth/shaman.png:50"
        [/frame]
    [/healing_anim]
    [attack_anim]
        [filter_attack]
            name=staff
        [/filter_attack]
        start_time=-250
        [frame]
            image="units/quenoth/shaman.png:400"
        [/frame]
        {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sand
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=320
            offset=0.75~1.1,1.1~1.25
            halo="projectiles/sand-storm-[1~8].png:40"
            auto_vflip=no
        [/missile_frame]
        start_time=-320
        [frame]
            image="units/quenoth/shaman.png:450"
            sound=petrified.ogg
        [/frame]
    [/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/quenoth/shaman.png:500"
            halo="halo/elven/nature-halo[1~8].png"
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Shyde
    name= _ "female^Quenoth Shyde"
    race=quenoth
    gender=female
    image=units/quenoth/shyde.png
    profile="portraits/quenoth/shyde.png"
    hitpoints=55
    movement_type=quenoth_float
    movement=6
    experience=200
    level=4
    alignment=neutral
    advances_to=null
    {AMLA_DEFAULT}
    cost=60
    usage=healer
    [abilities]
        {UTBS_ABILITY_SUPER_CURES}
    [/abilities]
    description= _ "From the teachings of Analia, the healer of the Emerald Blossom:

“... by embracing the path to the faerie, we must step past the boundary of flesh and magic to become a being of them both. As surely as the physical form binds the blood that gives us life, it must bind the energy that governs our world, that which is the flowing wind, the cycle of day and night, the endless march of time... We are the physical form, but we are timeless spirits as well, beings touched by that which is faerie. That realm is one that endures through the aeons, whether it takes on the form of nature, of fire, or of sand, it is always there. As it is mutable, so must we be, for the power of faerie is that to transmute the flesh of our world, from sand to earth, from scorched wasteland to life.”"
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [attack]
        name=staff
        #textdomain wesnoth-units
        description= _"staff"
        #textdomain wesnoth-utbs
        type=impact
        range=melee
        damage=11
        number=2
        range=melee
        icon=attacks/druidstaff.png
    [/attack]
    [attack]
        name=sand
        description= _"sand"
        type=impact
        range=ranged
        damage=6
        number=4
        icon=attacks/sand-storm.png
        [specials]
            {WEAPON_SPECIAL_DAZE}
        [/specials]
    [/attack]
    [attack]
        name=thorns
        #textdomain wesnoth-units
        description= _"thorns"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=9
        number=4
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/shyde.png" "units/quenoth/shyde.png" {SOUND_LIST:ELF_FEMALE_HIT} }
    [healing_anim]
        start_time=-250
        [frame]
            image="units/quenoth/shyde.png:50"
        [/frame]
        [frame]
            image="units/quenoth/shyde.png:350"
            halo=halo/elven/shaman-heal-halo-[1~7].png
        [/frame]
        [frame]
            image="units/quenoth/shyde.png:50"
        [/frame]
    [/healing_anim]
    [attack_anim]
        [filter_attack]
            name=staff
        [/filter_attack]
        start_time=-250
        [frame]
            image="units/quenoth/shyde.png:400"
        [/frame]
        {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sand
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=320
            offset=0.75~1.1,1.1~1.25
            halo="projectiles/sand-storm-[1~8].png:40"
            auto_vflip=no
        [/missile_frame]
        start_time=-320
        [frame]
            image="units/quenoth/shyde.png:450"
            sound=petrified.ogg
        [/frame]
    [/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/quenoth/shyde.png:500"
            halo="halo/elven/nature-halo[1~8].png"
        [/frame]
        {SOUND:HIT_AND_MISS magic-thorns-[1,2].ogg magic-thorns-miss-[1,2].ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Sun Singer
    name= _ "female^Quenoth Sun Singer"
    race=quenoth
    gender=female
    image=units/quenoth/sun_singer/sun-singer.png
    profile="portraits/quenoth/sun_singer.png"
    hitpoints=36
    movement_type=quenoth_foot
    movement=5
    experience=105
    level=2
    alignment=lawful
    advances_to=Quenoth Sun Sylph
    cost=36
    usage=healer
    [abilities]
        {UTBS_ABILITY_HEALS}
    [/abilities]
    description= _ "Faerie and elven magic have oft been aptly associated with life, from which they draw the majority of their power. However, with the death of much of Irdya’s flora, the Quenoth Elves were forced to seek another source for their sorcery. In time, they learned to harness the power of the suns Sela and Naia - the twin stars that had razed the forests of Irdya to ashes, yet still spring forth the energy required for sparking life. Those who master this new magic sing of the dual nature of these embodiments of fire: flames that are both life and life’s demise."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [attack]
        name=touch
        #textdomain wesnoth-units
        description= _"touch"
        type=fire
        range=melee
        damage=8
        number=2
        icon=attacks/touch-faerie.png
    [/attack]
    [attack]
        name=faerie fire
        description= _"faerie fire"
        #textdomain wesnoth-utbs
        type=arcane
        range=ranged
        damage=9
        number=3
        icon=attacks/faerie-fire-sun.png
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    {DEFENSE_ANIM "units/quenoth/sun_singer/sun-singer-defend2.png" "units/quenoth/sun_singer/sun-singer-defend1.png" {SOUND_LIST:ELF_FEMALE_HIT} }
    [standing_anim]
        start_time=0
        flame_start_time=0
        backglow_start_time=0
        [frame]
            image="units/quenoth/sun_singer/sun-singer-stand.png"
        [/frame]
        [flame_frame]
            image="{QUENOTH_FLAME_POS 38 0}"
            layer=42
            auto_vflip=no
            auto_hflip=yes
        [/flame_frame]
        [backglow_frame]
            image="units/quenoth/sun_singer/sun-singer-backglow.png"
            layer=41
            auto_vflip=no
            auto_hflip=yes
        [/backglow_frame]
    [/standing_anim]
    [healing_anim]
        start_time=-270
        [frame]
            image="units/quenoth/sun_singer/sun-singer-heal-[1,2].png:70"
        [/frame]
        [frame]
            image="units/quenoth/sun_singer/sun-singer-heal-[3~8].png:90"
            halo=halo/elven/shaman-heal-halo-[1~7].png~O(0.8)~CS(30,-15,-35)~SCALE(108,108)
        [/frame]
        [frame]
            image="units/quenoth/sun_singer/sun-singer.png:50"
        [/frame]
    [/healing_anim]
    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        start_time=-250
        [frame]
            image="units/quenoth/sun_singer/sun-singer.png:400"
        [/frame]
        {SOUND:HIT_AND_MISS flame-big.ogg flame-big-miss.ogg -250}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=faerie fire
        [/filter_attack]
        start_time=-350
        {MISSILE_FRAME_FAERIE_FIRE}
        missile_blend_color=255,180,0
        missile_blend_ratio=0.5
        missile_halo_mod=~CS(255,-40,-155)
        [frame]
            image="units/quenoth/sun_singer/sun-singer.png"
            duration=500
            halo=halo/elven/faerie-fire-halo[1~7].png
            halo_x,halo_y=14,0
            halo_mod=~CS(255,-40,-155)
        [/frame]
        {SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-faeriefire-miss.ogg -350}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Sun Sylph
    name= _ "female^Quenoth Sun Sylph"
    race=quenoth
    gender=female
    image=units/quenoth/sun_sylph/sun-sylph.png
    profile="portraits/quenoth/sun_sylph.png"
    halo=halo/illuminates-aura.png~CS(50,20,-70)
    hitpoints=46
    movement_type=quenoth_float
    movement=6
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=53
    usage=healer
    [abilities]
        {UTBS_ABILITY_HEALS}
        {ABILITY_ILLUMINATES}
    [/abilities]
    description= _ "In times past, those who stepped beyond the boundary of the worlds of elf and faerie were called Sylphs, mystics with unparalleled knowledge of the secrets of the natural sphere. However, in the harsh new world, the path into the realm of the faerie became no longer a journey into the heart of nature, but a diverging path between light and darkness. Those elves who embrace the burning suns as the fulcrum of life and death learn also to harness their power, transforming into beings imbued with radiant fire. These Sun Sylphs very much embody the power that they wield: light that heals and protects, and flames that smolder with destruction."
    die_sound={SOUND_LIST:ELF_FEMALE_HIT}
    [attack]
        name=touch
        #textdomain wesnoth-units
        description= _"touch"
        type=fire
        range=melee
        damage=12
        number=2
        icon=attacks/touch-faerie.png
    [/attack]
    [attack]
        name=faerie fire
        description= _"faerie fire"
        #textdomain wesnoth-utbs
        type=arcane
        range=ranged
        damage=10
        number=4
        icon=attacks/faerie-fire-sun.png
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]
    # filtering whether she is floating or standing
    {DEFENSE_ANIM_FILTERED "units/quenoth/sun_sylph/sun-sylph-fly-defend2.png" "units/quenoth/sun_sylph/sun-sylph-fly-defend1.png" {SOUND_LIST:ELF_FEMALE_HIT} (
        terrain_type={QUENOTH_UNWALKABLE_TERRAINS}
    )}
    {DEFENSE_ANIM_FILTERED "units/quenoth/sun_sylph/sun-sylph-defend2.png" "units/quenoth/sun_sylph/sun-sylph-defend1.png" {SOUND_LIST:ELF_FEMALE_HIT} (
        terrain_type=!,{QUENOTH_UNWALKABLE_TERRAINS}
    )}

    [movement_anim]
        # flame frames are absent because they do some weird lagging thing
        start_time=0
        [frame]
            image="units/quenoth/sun_sylph/sun-sylph-fly1.png:150"
        [/frame]
    [/movement_anim]
    [standing_anim]
        start_time=0
        flame_start_time=0
        backglow_start_time=0
        [if]
            terrain_type={QUENOTH_UNWALKABLE_TERRAINS}
            [frame]
                image="units/quenoth/sun_sylph/sun-sylph-fly[1~6].png:150"
            [/frame]
        [/if]
        [else]
            [frame]
                image="units/quenoth/sun_sylph/sun-sylph-stand.png"
            [/frame]
        [/else]
        [flame_frame]
            image="{QUENOTH_FLAME_POS 44 0}"
            halo="{QUENOTH_FLAME_POS 4 4}"
            layer=42
            auto_vflip=no
            auto_hflip=yes
        [/flame_frame]
        [backglow_frame]
            image="units/quenoth/sun_sylph/sun-sylph-backglow.png"
            layer=41
            auto_vflip=no
            auto_hflip=yes
        [/backglow_frame]
    [/standing_anim]
    [healing_anim]
        start_time=-250
        [frame]
            image="units/quenoth/sun_sylph/sun-sylph-fly1.png:50"
        [/frame]
        [frame]
            image="units/quenoth/sun_sylph/sun-sylph-fly[2~5].png:[80*4]"
            halo=halo/elven/shaman-heal-halo-[1~7].png
        [/frame]
        [frame]
            image="units/quenoth/sun_sylph/sun-sylph-fly6.png:50"
        [/frame]
    [/healing_anim]
    [attack_anim]
        [filter_attack]
            name=touch
        [/filter_attack]
        start_time=-250
        offset="0~0.6:200,0.6~0:200"
        [if]
            terrain_type={QUENOTH_UNWALKABLE_TERRAINS}
            [frame]
                image="units/quenoth/sun_sylph/sun-sylph-fly1.png:400"
            [/frame]
        [/if]
        [else]
            [frame]
                image="units/quenoth/sun_sylph/sun-sylph.png:400"
            [/frame]
        [/else]
        missile_start_time=0
        [if]
            hits=yes
            {FIRE_BURST_SMALL}
        [/if]
        {SOUND:HIT_AND_MISS flame-big.ogg flame-big-miss.ogg -250}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=faerie fire
        [/filter_attack]
        start_time=-350
        elfhalo_start_time=-350
        {MISSILE_FRAME_FAERIE_FIRE}
        missile_blend_color=255,180,0
        missile_blend_ratio=0.5
        missile_halo_mod=~CS(255,-40,-155)
        [if]
            terrain_type={QUENOTH_UNWALKABLE_TERRAINS}
            [frame]
                image="units/quenoth/sun_sylph/sun-sylph-fly1.png"
            [/frame]
        [/if]
        [else]
            [frame]
                image="units/quenoth/sun_sylph/sun-sylph.png"
            [/frame]
        [/else]
        [elfhalo_frame]
            duration=500
            halo=halo/elven/faerie-fire-halo[1~7].png
            halo_x,halo_y=14,0
            halo_mod=~CS(255,-40,-155)
        [/elfhalo_frame]
        {SOUND:HIT_AND_MISS magic-faeriefire.ogg magic-faeriefire-miss.ogg -350}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Tauroch
    name= _ "Tauroch"
    image=units/quenoth/tauroch/tauroch.png
    # profile="portraits/quenoth/tauroch_rider.png"
    race=monster
    hitpoints=36
    movement_type=quenoth_beast
    movement=5
    experience=100
    level=1
    alignment=neutral
    advances_to=null
    cost=12
    usage=fighter
    description= _ "Taurochs are huge, hardened beasts of the desert, considered untamable by most surviving races. However, the elves’ affinity with nature has allowed them to form an unlikely bond with these unruly animals. While taurochs can easily carry or pull heavy loads, their thick hides and unwavering resolution also make them formidable mounts in battle."
    die_sound="tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"
    [attack]
        name=trample
        description= _"trample"
        type=impact
        range=melee
        damage=7
        number=2
        icon=attacks/trample.png
    [/attack]
    {DEFENSE_ANIM "units/quenoth/tauroch/tauroch.png" "units/quenoth/tauroch/tauroch.png" "tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"}
    [attack_anim]
        [filter_attack]
            name=trample
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=100
            image="units/quenoth/tauroch/tauroch.png"
        [/frame]
        [frame]
            duration=350
            image="units/quenoth/tauroch/tauroch.png"
            sound=club.ogg
        [/frame]
        {SOUND:HIT squishy-hit.wav -150}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Tauroch Flagbearer
    name= _ "Tauroch Flagbearer"
    image=units/quenoth/tauroch/flagbearer.png
    image_icon="units/quenoth/tauroch/flagbearer.png~CROP(0,0,72,72)"
    profile="portraits/quenoth/tauroch_flagbearer.png"
    race=quenoth
    # Base movement of 4 is too little, but we don't want them to get 6 either
    # if they're quick, so instead they just have 5 movement but can't get quick
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    {TRAIT_DEXTROUS}
    {TRAIT_HEALTHY}
    hitpoints=65
    movement_type=quenoth_beast
    #mostly like a foot Elf, but they are bad at defending in villages
    [defense]
        village=60
    [/defense]
    movement=5
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=52
    usage=mixed fighter
    undead_variation=beast_rider
    description= _ "The prestigious Flagbearers spend years out in the open deserts leading their brethren on patrols and hunts, where they forage for supplies while defending their villages from brigands. They are invariably masters of skirmishes and tactics, highly proficient at roaming through the inhospitable sands. Rarely the leaders of large villages or armies, Flagbearers nonetheless have the skill and charisma to act as generals in times of need, when the elves are threatened by something more than mere scavengers or wild beasts."
    die_sound="tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"
    [abilities]
        {ABILITY_LEADERSHIP}
    [/abilities]
    [attack]
        name=ram
        #textdomain wesnoth-units
        description= _"ram"
        type=impact
        range=melee
        damage=10
        number=3
        icon=attacks/ram.png
        [specials]
            {WEAPON_SPECIAL_SHOCK}
        [/specials]
    [/attack]
    [attack]
        name=javelin
        description= _"javelin"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=8
        number=3
        icon=attacks/javelin-human.png
    [/attack]
    {DEFENSE_ANIM "units/quenoth/tauroch/flagbearer-defend-2.png" "units/quenoth/tauroch/flagbearer-defend-1.png" "tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"}
    [attack_anim]
        [filter_attack]
            name=ram
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=50
            image="units/quenoth/tauroch/flagbearer.png"
        [/frame]
        [frame]
            duration=400
            image="units/quenoth/tauroch/flagbearer.png"
            sound=tail.ogg
        [/frame]
        {SOUND:HIT mace.ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        start_time=-300
        [frame]
            image="units/quenoth/tauroch/flagbearer.png:450"
            sound={SOUND_LIST:THROW}
        [/frame]
        {SOUND:HIT spear.ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Tauroch Protector
    name= _ "Tauroch Protector"
    image=units/quenoth/tauroch/protector.png
    image_icon="units/quenoth/tauroch/protector.png~CROP(0,0,72,72)"
    profile="portraits/quenoth/tauroch_protector.png"
    race=quenoth
    # Base movement of 4 is too little, but we don't want them to get 6 either
    # if they're quick, so instead they just have 5 movement but can't get quick
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    {TRAIT_DEXTROUS}
    {TRAIT_HEALTHY}
    hitpoints=71
    movement_type=quenoth_beast
    #mostly like a foot Elf, but they are bad at defending in villages
    [defense]
        village=60
    [/defense]
    [resistance]
        blade=70
        pierce=80
        impact=70
    [/resistance]
    movement=5
    experience=150
    level=3
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=48
    usage=mixed fighter
    undead_variation=beast_rider
    description= _ "From the journal of Syniel, the Sand Skipper:

The orcs ambushed me near the oasis at twilight. I had to flee into the desert, but even there, the wolves were nearly fast enough to keep up with me. I ran and ran for hours until I could barely feel my legs and still, they hounded me under the bright moonlight. I thought that I was dead for sure, but as Eloh would have it, I came across a young tauroch that had wandered away from her pack. She must have sensed my trouble, for she came to me swiftly and fought beside me all through the long night; beyond exhaustion, we somehow managed to drive off dozens of orcs and wolves by ourselves. By dawn, we were alone, but wounded and weary to our bones with nothing but sand in sight. I used what little remained of my supplies to tend to the tauroch’s wounds, then I succumbed to fatigue and I remember little after that.

-----------------------

I woke up today in the village, tired, but alive. My friends told me that the tauroch had carried me through the desert for many hours at no little cost to herself, for she was in worse condition than I by the time we had arrived. I can only be grateful that I managed to survive that dreadful night, for it is only by Eloh’s grace that I happened upon such a loyal companion. She is my savior, my watchful guardian, a blessing from the Goddess herself. I think I will call her Nala, meaning ‘Protector’ in our tongue. I am sure we will have many more adventures together."
    die_sound="tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"
    [abilities]
        {ABILITY_STEADFAST}
    [/abilities]
    [attack]
        name=trample
        description= _"trample"
        type=impact
        range=melee
        damage=14
        number=2
        icon=attacks/trample.png
    [/attack]
    [attack]
        name=javelin
        #textdomain wesnoth-units
        description= _"javelin"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=11
        number=3
        icon=attacks/javelin-human.png
    [/attack]
    {DEFENSE_ANIM "units/quenoth/tauroch/protector-defend-2.png" "units/quenoth/tauroch/protector-defend-1.png" "tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"}
    [attack_anim]
        [filter_attack]
            name=trample
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=100
            image="units/quenoth/tauroch/protector.png"
        [/frame]
        [frame]
            duration=350
            image="units/quenoth/tauroch/protector.png"
            sound=club.ogg
        [/frame]
        {SOUND:HIT squishy-hit.wav -150}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        start_time=-300
        [frame]
            image="units/quenoth/tauroch/protector.png:450"
            sound={SOUND_LIST:THROW}
        [/frame]
        {SOUND:HIT spear.ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Tauroch Rider
    name= _ "Tauroch Rider"
    image=units/quenoth/tauroch/rider.png
    image_icon="units/quenoth/tauroch/rider.png~CROP(0,0,72,72)"
    profile="portraits/quenoth/tauroch_rider.png"
    race=quenoth
    # Base movement of 4 is too little, but we don't want them to get 6 either
    # if they're quick, so instead they just have 5 movement but can't get quick
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    {TRAIT_DEXTROUS}
    {TRAIT_HEALTHY}
    hitpoints=42
    movement_type=quenoth_beast
    movement=5
    experience=34
    level=1
    alignment=lawful
    advances_to=Tauroch Vanguard,Tauroch Stalwart
    cost=20
    usage=mixed fighter
    undead_variation=beast_rider
    description= _ "Taurochs are huge, hardened beasts of the desert, considered untamable by most surviving races. However, the elves’ affinity with nature has allowed them to form an unlikely bond with these unruly animals. While taurochs can easily carry or pull heavy loads, their thick hides and unwavering resolution also make them formidable mounts in battle. A tauroch guided by a skilled rider can hold off multiple enemies by itself and serves as a powerful warden to protect elven villages and caravans."
    die_sound="tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"
    [attack]
        name=trample
        description= _"trample"
        type=impact
        range=melee
        damage=8
        number=2
        icon=attacks/trample.png
    [/attack]
    [attack]
        name=javelin
        #textdomain wesnoth-units
        description= _"javelin"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=6
        number=3
        icon=attacks/javelin-human.png
    [/attack]
    {DEFENSE_ANIM "units/quenoth/tauroch/rider-defend-2.png" "units/quenoth/tauroch/rider-defend-1.png" "tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"}
    [attack_anim]
        [filter_attack]
            name=trample
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=100
            image="units/quenoth/tauroch/rider.png"
        [/frame]
        [frame]
            duration=350
            image="units/quenoth/tauroch/rider.png"
            sound=club.ogg
        [/frame]
        {SOUND:HIT squishy-hit.wav -150}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        start_time=-300
        [frame]
            image="units/quenoth/tauroch/rider.png:450"
            sound={SOUND_LIST:THROW}
        [/frame]
        {SOUND:HIT spear.ogg -100}
    [/attack_anim]
[/unit_type]

#define QUENOTH_RIDER_VARIANT SUFFIX_NUMBER COST
    [unit_type]
        id=Tauroch Rider{SUFFIX_NUMBER}
        [base_unit]
            id=Tauroch Rider
        [/base_unit]
        hide_help=yes
        do_not_list=yes
        cost={COST}
    [/unit_type]
#enddef

{QUENOTH_RIDER_VARIANT  1 21}
{QUENOTH_RIDER_VARIANT  2 22}
{QUENOTH_RIDER_VARIANT  3 23}
{QUENOTH_RIDER_VARIANT  4 24}
{QUENOTH_RIDER_VARIANT  5 25}
{QUENOTH_RIDER_VARIANT  6 26}
{QUENOTH_RIDER_VARIANT  7 27}
{QUENOTH_RIDER_VARIANT  8 28}
{QUENOTH_RIDER_VARIANT  9 29}
{QUENOTH_RIDER_VARIANT 10 30}

#undef QUENOTH_RIDER_VARIANT


#textdomain wesnoth-utbs

[unit_type]
    id=Tauroch Stalwart
    name= _ "Tauroch Stalwart"
    image=units/quenoth/tauroch/stalwart.png
    image_icon="units/quenoth/tauroch/stalwart.png~CROP(0,0,72,72)"
    profile="portraits/quenoth/tauroch_stalwart.png"
    race=quenoth
    # Base movement of 4 is too little, but we don't want them to get 6 either
    # if they're quick, so instead they just have 5 movement but can't get quick
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    {TRAIT_DEXTROUS}
    {TRAIT_HEALTHY}
    hitpoints=56
    movement_type=quenoth_beast
    #mostly like a foot Elf, but they are bad at defending in villages
    [defense]
        village=60
    [/defense]
    [resistance]
        blade=70
        pierce=90
        impact=70
    [/resistance]
    movement=5
    experience=80
    level=2
    alignment=lawful
    advances_to=Tauroch Protector
    cost=33
    usage=mixed fighter
    undead_variation=beast_rider
    description= _ "When encountering wild taurochs, Quenoth hunters often observe the curious behavior of particularly stubborn beasts, who will brace their rugged bodies and absolutely refuse to budge when provoked. Though difficult to placate, these taurochs are sometimes selected by skilled riders for their exceptional resilience. Any warrior who finds their advance blocked by a Stalwart would undoubtedly be wise to seek another path, for trying to displace the beast would be akin to trying to fight a stone wall."
    die_sound="tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"
    [abilities]
        {ABILITY_STEADFAST}
    [/abilities]
    [attack]
        name=trample
        description= _"trample"
        type=impact
        range=melee
        damage=11
        number=2
        icon=attacks/trample.png
    [/attack]
    [attack]
        name=javelin
        #textdomain wesnoth-units
        description= _"javelin"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=8
        number=3
        icon=attacks/javelin-human.png
    [/attack]
    {DEFENSE_ANIM "units/quenoth/tauroch/stalwart-defend-2.png" "units/quenoth/tauroch/stalwart-defend-1.png" "tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"}
    [attack_anim]
        [filter_attack]
            name=trample
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=100
            image="units/quenoth/tauroch/stalwart.png"
        [/frame]
        [frame]
            duration=350
            image="units/quenoth/tauroch/stalwart.png"
            sound=club.ogg
        [/frame]
        {SOUND:HIT squishy-hit.wav -150}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        start_time=-300
        [frame]
            image="units/quenoth/tauroch/stalwart.png:450"
            sound={SOUND_LIST:THROW}
        [/frame]
        {SOUND:HIT spear.ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Tauroch Vanguard
    name= _ "Tauroch Vanguard"
    image=units/quenoth/tauroch/vanguard.png
    image_icon="units/quenoth/tauroch/vanguard.png~CROP(0,0,72,72)"
    profile="portraits/quenoth/tauroch_vanguard.png"
    race=quenoth
    # Base movement of 4 is too little, but we don't want them to get 6 either
    # if they're quick, so instead they just have 5 movement but can't get quick
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    {TRAIT_DEXTROUS}
    {TRAIT_HEALTHY}
    hitpoints=51
    movement_type=quenoth_beast
    #mostly like a foot Elf, but they are bad at defending in villages
    [defense]
        village=60
    [/defense]
    movement=5
    experience=85
    level=2
    alignment=lawful
    advances_to=Tauroch Flagbearer
    cost=35
    usage=mixed fighter
    undead_variation=beast_rider
    description= _ "The massive and fearless taurochs are often employed not only to charge and break through enemy formations, but to rally and inspire infantry to hold their ground. Vanguards are hardy riders, adept at surviving in the thick of battle and leading their brethren from the front lines. Towering above the rolling dunes, the Vanguards bear great flags that fly brightly in the desert skies, a distinctive sight even from far away across the sands. The presence of these riders is a heartening one for most elves and a deterrent for the many pillagers that rove the deserts."
    die_sound="tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"
    [abilities]
        {ABILITY_LEADERSHIP}
    [/abilities]
    [attack]
        name=ram
        #textdomain wesnoth-units
        description= _"ram"
        type=impact
        range=melee
        damage=8
        number=3
        icon=attacks/ram.png
        [specials]
            {WEAPON_SPECIAL_SHOCK}
        [/specials]
    [/attack]
    [attack]
        name=javelin
        description= _"javelin"
        #textdomain wesnoth-utbs
        type=pierce
        range=ranged
        damage=7
        number=3
        icon=attacks/javelin-human.png
    [/attack]
    {DEFENSE_ANIM "units/quenoth/tauroch/vanguard-defend-2.png" "units/quenoth/tauroch/vanguard-defend-1.png" "tauroch-hit-1.ogg,tauroch-hit-2.ogg,tauroch-hit-3.ogg"}
    [attack_anim]
        [filter_attack]
            name=ram
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=50
            image="units/quenoth/tauroch/vanguard.png"
        [/frame]
        [frame]
            duration=400
            image="units/quenoth/tauroch/vanguard.png"
            sound=tail.ogg
        [/frame]
        {SOUND:HIT mace.ogg -100}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=javelin
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/spear-n.png"
            image_diagonal="projectiles/spear-ne.png"
        [/missile_frame]
        start_time=-300
        [frame]
            image="units/quenoth/tauroch/vanguard.png:450"
            sound={SOUND_LIST:THROW}
        [/frame]
        {SOUND:HIT spear.ogg -100}
    [/attack_anim]
[/unit_type]


#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Warrior
    name= _ "Quenoth Warrior"
    race=quenoth
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_QUICK}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    image=units/quenoth/warrior.png
    profile="portraits/quenoth/warrior.png"
    hitpoints=44
    movement_type=quenoth_foot
    movement=5
    experience=80
    level=2
    alignment=lawful
    advances_to=Quenoth Champion
    cost=29
    usage=fighter
    description= _ "When compared to a spear, a glaive is often a shorter weapon with less reach, but more versatile in use. An experienced fighter can use the head to hook or pin enemy weapons and strike from unusual angles, allowing them to catch an unwary opponent by surprise. In formation, Quenoth Warriors bear these somewhat unorthodox weapons to both strike with great power and to support their nearby brethren."
    die_sound={SOUND_LIST:ELF_HIT}
    [abilities]
        {ABILITY_FORMATION}
    [/abilities]
    [attack]
        name=glaive
        description= _"glaive"
        type=pierce
        range=melee
        damage=14
        number=2
        icon=attacks/glaive.png
        [specials]
            {WEAPON_SPECIAL_FIRSTSTRIKE}
        [/specials]
    [/attack]
    [attack]
        name=glaive
        description= _"glaive"
        type=blade
        range=melee
        damage=8
        number=3
        icon=attacks/glaive.png
    [/attack]
    {DEFENSE_ANIM "units/quenoth/warrior-defend-2.png" "units/quenoth/warrior-defend-1.png" {SOUND_LIST:ELF_HIT}}
    [attack_anim]
        [filter_attack]
            name=glaive
        [/filter_attack]
        offset=0.0~0.3,0.3~0.5,0.5~0.60,0.60~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=450
            image="units/quenoth/warrior.png"
        [/frame]
        {SOUND:HIT_AND_MISS spear.ogg spear-miss.ogg -100}
    [/attack_anim]
[/unit_type]