#textdomain wesnoth-thot
[unit]
    id=Dwarvish Rune Lord
    # This is a customized Dwarven Runenaster with a chill tempest
    # attack like the L3 Lich, and its own animations.  
    name= _ "Dwarvish Runemaster"
    race=dwarf
    image=units/karrag.png
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=48
    movement_type=dwarvishfoot
    [resistance]
        blade=50
        pierce=60
        impact=60
    [/resistance]
    movement=4
    level=3
    alignment=neutral
    cost=50
    usage=fighter
    experience=150
    advanceto=null
    {AMLA_DEFAULT}
     undead_variation=dwarf
   # FIXME: Customize this description after string thaw.
    unit_description= _ "Except for those with almost supernatural skill, the highest rank a runecrafter can rise to is that of the Dwarvish Runemaster. Striking blows nearly as powerful as those of the best warriors, they would be fearsome without their craft, but with it they are also nigh on invincible, since their runes cause the physical blows of their enemies to deal less damage than would be expected."++{SPECIAL_NOTES}+{SPECIAL_NOTES_MAGICAL}
    {DEFENSE_ANIM "units/karrag-defend.png" "units/karrag.png" {SOUND_LIST:LICH_HIT} }
    die_sound={SOUND_LIST:LICH_HIT}
    [attack]
        name=hammer
        description= _"hammer"
        type=impact
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=melee
        damage=18
        number=2
    [/attack]
    [attack_anim]
        [attack_filter]
            name=hammer
        [/attack_filter]
        [frame]
            begin=-200
            end=-100
            image=units/karrag-attack1.png
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image=units/karrag-attack2.png
                sound=mace.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image=units/karrag-attack2.png
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
            image=units/karrag-attack3.png
        [/frame]
        [frame]
            begin=175
            end=300
            image=units/karrag-attack4.png
        [/frame]
    [/attack_anim]

    [attack]
        name=chill tempest
        description=_"chill tempest"
        type=cold
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        range=ranged
        damage=12
        number=3
        icon=attacks/iceball.png
    [/attack]
    [attack_anim]
        [attack_filter]
            name=chill tempest
            range=ranged
        [/attack_filter]
        [frame]
            begin=-250
            end=-225
            image=units/karrag-ranged1.png
        [/frame]
        [frame]
            begin=-225
            end=-200
            image=units/karrag-ranged2.png
        [/frame]
        [frame]
            begin=-200
            end=-175
            image=units/karrag-ranged3.png
        [/frame]
        [frame]
            begin=-175
            end=-150
            image=units/karrag-ranged4.png
        [/frame]
        [frame]
            begin=-150
            end=-100
            image=units/karrag-ranged5.png
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=100
                image=units/karrag-ranged6.png
                sound=flail.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=100
                image=units/karrag-ranged6.png
                sound=flail-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=100
            end=175
            image=units/karrag-ranged7.png
        [/frame]
        [frame]
            begin=175
            end=225
            image=units/karrag-ranged8.png
        [/frame]
        [frame]
            begin=225
            end=300
            image=units/karrag-ranged9.png
        [/frame]
        [frame]
            begin=300
            end=375
            image=units/karrag-ranged10.png
        [/frame]
    [/attack_anim]
[/unit]
