#textdomain wesnoth-httt

#define HTTT_FIGHTER
    id=Fighter
    name= _ "Fighter"
    race=human
    image="units/konrad-fighter.png"
    ellipse="misc/ellipse"
    hitpoints=32
    movement_type=smallfoot
    movement=6
    experience=28
    level=1
    alignment=lawful
    advances_to=Commander
    usage=mixed fighter
    die_sound={SOUND_LIST:HUMAN_DIE}
    [attack]
        name=sword
        description= _"sword"
        icon=attacks/sword-human.png
        type=blade
        range=melee
        damage=6
        number=3
    [/attack]
    {DEFENSE_ANIM "units/konrad-fighter-defend.png" "units/konrad-fighter.png" {SOUND_LIST:HUMAN_HIT} }
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        [frame]
            begin=-200
            end=-150
            image="units/konrad-fighter.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-150
                end=50
                image="units/konrad-fighter-attack-1.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-150
                end=50
                image="units/konrad-fighter-attack-1.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/else]
        [frame]
            begin=50
            end=150
            image="units/konrad-fighter-attack-2.png"
        [/frame]
        [frame]
            begin=150
            end=200
            image="units/konrad-fighter.png"
        [/frame]
    [/attack_anim]
#enddef

[unit_type]
    {HTTT_FIGHTER}
    cost=18
    description= _ "Young and brash, Fighters attack with a sword, and are vulnerable to more seasoned enemies. However they have the potential to become great warriors one day."
    [variation]
        {HTTT_FIGHTER}
        variation_name=scepter
        cost=38
        description= _ "Young and brash, Fighters attack with a sword, and are vulnerable to more seasoned enemies. However they have the potential to become great warriors one day."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MAGICAL}
        [attack]
            name=scepter of fire
            #the sceptre of fire always has the 're' writing, this is intentional!
            description= _"sceptre of fire"
            type=fire
            range=ranged
            [specials]
                {WEAPON_SPECIAL_MAGICAL}
            [/specials]
            icon=attacks/fireball.png
            damage=12
            number=3
        [/attack]
        [attack_anim]
            [filter_attack]
                name=scepter of fire
            [/filter_attack]
            {MISSILE_FRAME_FIREBALL}
            start_time=-550

            [frame]
                sound=fire.wav
                duration=200
            [/frame]
        [/attack_anim]
    [/variation]
[/unit_type]
#undef HTTT_FIGHTER
