#textdomain wesnoth-thot
[unit]
    id=Dwarvish Masked Fighter
    # Variant of the Dwarvish Fighter -- same stats, different sprites.
    name= _ "Dwarvish Masked Fighter"
    race=dwarf
    image="units/masked_fighter.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    ellipse="misc/ellipse"
    hitpoints=38
    movement_type=dwarvishfoot
    movement=4
    experience=41
    level=1
    alignment=neutral
    advanceto=Dwarvish Masked Steelclad
    undead_variation=dwarf
    cost=16
    usage=fighter
    # FIXME: Customize this description after string thaw
    unit_description= _ "Dwarvish Fighters wield mighty battle axes and hammers, which make them feared opponents in close range combat. They are excellent in mountainous terrain or underground. Though not swift, their power and endurance more than compensate."
    die_sound={SOUND_LIST:DWARF_DIE}
    {DEFENSE_ANIM_FILTERED "units/masked_fighter-axedefend.png" "units/masked_fighter.png" {SOUND_LIST:DWARF_HIT} (
    [secondary_attack_filter]
        name=axe
    [/secondary_attack_filter]
    )}
    {DEFENSE_ANIM_FILTERED "units/masked_fighter-hammerdefend.png" "units/masked_fighter.png" {SOUND_LIST:DWARF_HIT} (
    [secondary_attack_filter]
        name=hammer
    [/secondary_attack_filter]
    )}
    {DEFENSE_ANIM_RANGE "units/masked_fighter-hammer.png" "units/masked_fighter.png" {SOUND_LIST:DWARF_HIT} ranged}
    [attack]
        name=axe
        description=_"axe"
        type=blade
        range=melee
        damage=7
        number=3
    [/attack]
    [attack]
        name=hammer
        description=_"hammer"
        type=impact
        range=melee
        damage=8
        number=2
    [/attack]

    [attack_anim]
        [attack_filter]
            name=hammer
        [/attack_filter]
        [frame]
            begin=-200
            end=-150
            image="units/masked_fighter-hammer.png"
        [/frame]
        [frame]
            begin=-150
            end=-100
            image="units/masked_fighter-hammer1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image="units/masked_fighter-hammer2.png"
                sound=mace.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image="units/masked_fighter-hammer2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
            image="units/masked_fighter-hammer3.png"
        [/frame]
        [frame]
            begin=175
            end=200
            image="units/masked_fighter-hammer.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [attack_filter]
            name=axe
        [/attack_filter]
        [frame]
            begin=-200
            end=-175
            image="units/masked_fighter-axe5.png"
        [/frame]
        [frame]
            begin=-175
            end=-100
            image="units/masked_fighter-axe1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=50
                image="units/masked_fighter-axe2.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=50
                image="units/masked_fighter-axe2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=50
            end=100
            image="units/masked_fighter-axe3.png"
        [/frame]
        [frame]
            begin=100
            end=150
            image="units/masked_fighter-axe4.png"
        [/frame]
        [frame]
            begin=150
            end=200
            image="units/masked_fighter-axe5.png"
        [/frame]
    [/attack_anim]
[/unit]
