#textdomain wesnoth-ei
[unit_type]
    id=Veteran Commander
    name= _ "Veteran Commander"
    race=human
    image="units/human-loyalists/marshal.png"
    profile="portraits/gweddry.webp"
    [leading_anim]
        start_time=-250
        [frame]
            image="units/human-loyalists/marshal-leading.png:300"
        [/frame]

        halo_start_time=-100
        [halo_frame]
            halo="halo/misc/leadership-flare-[1~13].png:20"
            halo_x,halo_y=19,-30
        [/halo_frame]
    [/leading_anim]
    hitpoints=60
    movement_type=smallfoot
    movement=6
    experience=200
    level=4
    alignment=lawful
    advances_to=null
    {AMLA_DEFAULT}
    cost=66
    usage=fighter
    description=_"Despite his lack of formal rank, Gweddry radiates more leadership and experience than many commanders twice his age. His cunning and tactical skill have been honed over countless battles, enabling him to direct even the freshest of recruits to strike strategically against impossible odds and emerge victorious."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM_RANGE "units/human-loyalists/marshal-defend-2.png" "units/human-loyalists/marshal-defend-1.png" {SOUND_LIST:HUMAN_HIT} melee }
    {DEFENSE_ANIM_RANGE "units/human-loyalists/marshal-crossbow-defend.png" "units/human-loyalists/marshal-crossbow.png" {SOUND_LIST:HUMAN_HIT} ranged }
    [resistance]
        blade=80
        pierce=80
        impact=80
    [/resistance]
    [abilities]
        {ABILITY_LEADERSHIP}
        #         {ABILITY_FORTIFY}
    [/abilities]
    [attack]
        name=sword
        #textdomain wesnoth-units
        description=_"longsword"
        icon=attacks/greatsword-human.png
        type=blade
        range=melee
        damage=10
        number=4
    [/attack]
    [attack]
        name=crossbow
        description=_"crossbow"
        #textdomain wesnoth-ei
        icon=attacks/crossbow-human.png
        type=fire
        range=ranged
        damage=12
        number=2
    [/attack]
    [death]
        start_time=0
        [frame]
            image="units/human-loyalists/marshal-die-[1~10].png:[75*8,175,125]"
        [/frame]
    [/death]
    [attack_anim]
        [filter_attack]
            name=crossbow
        [/filter_attack]
        missile_start_time=-150
        [missile_frame]
            duration=150
            image="projectiles/missile-fire-n.png"
            image_diagonal="projectiles/missile-fire-ne.png"
        [/missile_frame]
        start_time=-400
        [frame]
            image="units/human-loyalists/marshal-crossbow.png:100"
        [/frame]
        {SOUND:HIT_AND_MISS crossbow-fire.ogg crossbow-fire-miss.ogg -300}
        [frame]
            image="units/human-loyalists/marshal-crossbow-attack[1~2].png:150"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword
        [/filter_attack]
        start_time=-300
        [frame]
            image="units/human-loyalists/marshal.png:50"
            offset=0.0~0.1
        [/frame]
        [frame]
            image="units/human-loyalists/marshal-defend-1.png:50"
            offset=0.1~0.15
        [/frame]
        [frame]
            image="units/human-loyalists/marshal-attack-sword[1~5].png:[100,75,100,50,75]"
            offset=0.15~0.35:100,0.35~0.45:75,0.45~0.5:100,0.5:20,0.5~0.4:30,0.4~0.2:75
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
        [frame]
            image="units/human-loyalists/marshal.png:75"
            offset=0.2~0.0
        [/frame]
    [/attack_anim]

    [recruiting_anim]
        start_time=-250
        [frame]
            image="units/human-loyalists/marshal-leading.png:300"
        [/frame]
        halo_start_time=-100
        [halo_frame]
            halo="halo/misc/leadership-flare-[1~13].png:20"
            halo_x,halo_y=19,-30
        [/halo_frame]
    [/recruiting_anim]
[/unit_type]
