#textdomain wesnoth-utbs

[unit_type]
    id=Quenoth Fighter
    name= _ "Quenoth Fighter"
    race=elf
    ignore_race_traits=yes
    {TRAIT_STRONG}
    {TRAIT_QUICK}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    image=units/quenoth/fighter.png
    profile="portraits/quenoth/fighter.png"
    hitpoints=34
    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."+{SPECIAL_NOTES}+{SPECIAL_NOTES_FORMATION}+{SPECIAL_NOTES_FIRSTSTRIKE}
    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=10
        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
