#textdomain wesnoth-units
[unit]
    id=Dwarvish Berserker
    name= _ "Dwarvish Berserker"
    race=dwarf
    image="units/dwarves/berserker.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=48
    movement_type=dwarvishfoot
    movement=5
    experience=150
    level=2
    alignment=neutral
    advanceto=null
    {AMLA_DEFAULT}
    undead_variation=dwarf
    cost=33
    usage=fighter
    unit_description= _ "Berserkers are a rare caste of Dwarves, who work themselves into a towering rage before combat. These warriors forget all notion of defense, thinking only of the unrelenting assaults they are legendary for performing."+{SPECIAL_NOTES}+{SPECIAL_NOTES_BERSERK}
    die_sound={SOUND_LIST:DWARF_DIE}
    {DEFENSE_ANIM "units/dwarves/berserker-defend.png" "units/dwarves/berserker.png" {SOUND_LIST:DWARF_HIT} }
    [defense]
        hills=60
        mountains=50
        village=60
        cave=60
        castle=60
    [/defense]
    [attack]
        name=berserker frenzy
        description=_"berserker frenzy"
        icon=attacks/frenzy.png
        type=blade
        [specials]
            {WEAPON_SPECIAL_BERSERK}
        [/specials]
        range=melee
        damage=7
        number=4
    [/attack]
    [idle_anim]
        {STANDARD_IDLE_FILTER}
        start_time=0
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-3.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-4.png"
        [/frame]
        [frame]
            duration=600
            image="units/dwarves/berserker-idle-5.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-6.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-7.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-8.png"
        [/frame]
        [frame]
            duration=200
            image="units/dwarves/berserker-idle-9.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-10.png"
        [/frame]
        [frame]
            duration=300
            image="units/dwarves/berserker-idle-9.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-10.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-11.png"
        [/frame]
        [frame]
            duration=400
            image="units/dwarves/berserker-idle-12.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-11.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-13.png"
        [/frame]
        [frame]
            duration=500
            image="units/dwarves/berserker-idle-15.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-14.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-16.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-2.png"
        [/frame]
        [frame]
            duration=100
            image="units/dwarves/berserker-idle-1.png"
        [/frame]
    [/idle_anim]
    [attack_anim]
        [attack_filter]
            name=berserker frenzy
        [/attack_filter]
        [if]
            [secondary_attack_filter]
            [/secondary_attack_filter]
            swing=1
            [frame]
                begin=-225
                end=-175
                image="units/dwarves/berserker.png"
            [/frame]
        [/if]
        [else]
            swing=1
            [frame]
                begin=-225
                end=-175
                image="units/dwarves/berserker.png"
                sound=dwarf-laugh.wav
            [/frame]
        [/else]
        [else]
            [frame]
                begin=-225
                end=-175
                image="units/dwarves/berserker.png"
            [/frame]
        [/else]
        [frame]
            begin=-175
            end=-75
            image="units/dwarves/berserker-attack1.png"
        [/frame]
        [if]
            hits=no
            [frame]
                begin=-75
                end=75
                image="units/dwarves/berserker-attack2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/if]
        [else]
            hits=yes
            [frame]
                begin=-75
                end=75
                image="units/dwarves/berserker-attack2.png"
                sound=axe.ogg
            [/frame]
        [/else]
        [frame]
            begin=75
            end=150
            image="units/dwarves/berserker-attack3.png"
        [/frame]
        [frame]
            begin=150
            end=175
            image="units/dwarves/berserker.png"
        [/frame]
    [/attack_anim]
[/unit]
