#textdomain wesnoth-utbs
[unit_type]
    id=Flesh Golem
    name= _ "Flesh Golem"
    race=monster
    image="units/monsters/flesh-golem.png"
    hitpoints=42
    movement_type=largefoot
    [resistance]
        blade=90
        pierce=90
        impact=90
        fire=120
        cold=120
    [/resistance]
    movement=4
    experience=100
    {AMLA_DEFAULT}
    level=2
    alignment=chaotic
    advances_to=null
    cost=30
    usage=fighter
    description= _ "Incredibly strong constructs, flesh golems are created by powerful necromancers from the bodies of fallen warriors. Though these golems dutifully follow every command, and attack their enemies with ceaseless rage, the madness that possesses them has occasionally caused them to turn on their masters."+{SPECIAL_NOTES}+{SPECIAL_NOTES_BERSERK}
    {DEFENSE_ANIM "units/monsters/flesh-golem-defend.png" "units/monsters/flesh-golem.png" {SOUND_LIST:TROLL_HIT} }
    die_sound={SOUND_LIST:TROLL_HIT}
    [attack]
        name=smashing frenzy
        description= _"smashing frenzy"
        icon=attacks/fist-golem.png
        type=impact
        [specials]
            {WEAPON_SPECIAL_BERSERK}
        [/specials]
        range=melee
        damage=10
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=smashing frenzy
        [/filter_attack]
        start_time=-300
        offset=0.0:150,0.0~0.6:150,0.6~0.0:250
        swoosh_start_time=-50
        swoosh_offset=0.6
        [if]
            value_second=2,4,6,8,10,12
            [frame]
                image="units/monsters/flesh-golem-attack-b[1~3,1].png:[120,120,150,160]"
            [/frame]
            [swoosh_frame]
                image="misc/blank-hex.png:1,units/monsters/flesh-golem-swoosh-b.png:100,misc/blank-hex.png:1"
                auto_vflip=no
                layer=90
            [/swoosh_frame]
        [/if]
        [else]
            [frame]
                image="units/monsters/flesh-golem-attack-[1~3,1].png:[120,120,150,160]"
            [/frame]
            [swoosh_frame]
                image="misc/blank-hex.png:1,units/monsters/flesh-golem-swoosh.png:100,misc/blank-hex.png:1"
                auto_vflip=no
                layer=90
            [/swoosh_frame]
        [/else]
        {SOUND:HIT_AND_MISS fist.ogg {SOUND_LIST:MISS} -100}
    [/attack_anim]
[/unit_type]
