#textdomain wesnoth-thot

# This unit is designed to be a bit tougher and more combat-capable
# than an Evish Shaman, but distinctly weaker than a Dwarvish
# Fighter. It is deliberately expensive, as the boosted leadership
# ability is powerful.

[unit_type]
    id=Dwarvish Witness
    name= _ "Dwarvish Witness"
    race=dwarf
    image=units/witness.png
    hitpoints=30
    movement_type=dwarvishfoot
    [resistance]
        blade=60
        pierce=70
        impact=70
    [/resistance]
    movement=5
    level=1
    alignment=neutral
    cost=20
    usage=mixed fighter
    experience=32
    advances_to=Dwarvish Annalist
    description= _ "A Witness functions as the eyes of the dwarves’ history, a deep lore that they never share with outsiders. The presence of a Witness inspires dwarvish warriors with the knowledge that their deeds (and their deaths) will not go unrecorded. They learn a fighting style deliberately unlike that of their fellows, one designed to turn the vaunted strength of the dwarves against itself. The person of a Witness is considered sacred, and Witnesses are often used as envoys between dwarvish clans."+{SPECIAL_NOTES}+{SPECIAL_NOTES_INSPIRE}+{SPECIAL_NOTES_MAGICAL}+{SPECIAL_NOTES_SLOW}
    [abilities]
        {ABILITY_INSPIRE_LEVEL_1}
    [/abilities]
    die_sound={SOUND_LIST:DWARF_DIE}

    {LEADING_ANIM units/witness-lead.png units/witness-lead.png 27,10}

    [attack]
        name=morningstar
        description= _"morningstar"	# wmllint: no spellcheck (until name->id)
        icon=attacks/mace-and-chain.png
        type=impact
        range=melee
        damage=5
        number=2
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
    [/attack]

    [attack_anim]
        [filter_attack]
            name=morningstar
        [/filter_attack]
        start_time=-250
        [frame]
            image=units/witness-attack[1~10].png:[25*4,50,200,75,50,75*2]
        [/frame]
        {SOUND:HIT_AND_MISS flail.ogg flail-miss.ogg -100}
    [/attack_anim]

    [attack]
        name=bolas
        description= _"bolas"
        type=impact
        range=ranged
        damage=6
        number=1
        [specials]
            {WEAPON_SPECIAL_SLOW}
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        icon=attacks/bolas.png
    [/attack]
    [attack_anim]
        [filter_attack]
            name=bolas
        [/filter_attack]
        missile_start_time=-200
        [missile_frame]
            duration=200
            image=projectiles/bolas-n.png
            image_diagonal=projectiles/bolas-ne.png
        [/missile_frame]
        start_time=-350
        [frame]
            image=units/witness-ranged[1~2].png:[150,300]
        [/frame]
        {SOUND:HIT_AND_MISS hatchet.wav hatchet-miss.wav -200}
        {SOUND:SLOW}
        [frame]
            image="units/witness.png:50"
        [/frame]
    [/attack_anim]
    [defend]
        start_time=-126
        [frame]
            image="units/witness.png:1"
        [/frame]
        [frame]
            duration=250
            image="units/witness-defend[1~3].png"
        [/frame]
        [frame]
            image="units/witness.png:1"
        [/frame]
        [if]
            hit_sound_start_time=-25
            hits=hit
            [hit_sound_frame]
                sound={SOUND_LIST:DWARF_HIT}
            [/hit_sound_frame]
        [/if]
    [/defend]
[/unit_type]
