#textdomain wesnoth-ei
[unit_type]
    id=Pyre Wight
    name= _ "Pyre Wight"
    race=undead
    image="units/undead-wight/pyre-wight.png"
    profile=portraits/pyre-wight.webp
    hitpoints=65
    movement_type=mounted
    movement=6
    experience=150
    level=3
    alignment=chaotic
    advances_to=null
    {AMLA_DEFAULT}
    cost=52
    usage=fighter
    description= _ "Risen from a funeral’s ashes and newly bathed in fire, a Pyre Wight’s soul burns with a desire for vengeance. They single-mindedly seek out those who wronged them in their past life, but undeath has robbed their memories of friend and foe."
    die_sound=skeleton-big-die.ogg

    [standing_anim]
        start_time=0
        [frame]
            image="units/undead-wight/pyre-wight-standing[1~8,1~8,1~8,1~8,1~8,1~8,1~8,1~8].png:100"
        [/frame]
        [frame]
            image="units/undead-wight/pyre-wight-standing[1~8,1~8,1~8,1~8]bob.png:100"
        [/frame]
    [/standing_anim]

    {DEFENSE_ANIM "units/undead-wight/pyre-wight-defend1.png" "units/undead-wight/pyre-wight-defend2.png" {SOUND_LIST:SKELETON_HIT} }
    [resistance]
        blade=70
        pierce=80
        impact=90
        arcane=120
        fire=90 # since they're fire-themed, give them fire resistance
        cold=110 # but cold vulnerability (only relevant vs Gaennell)
    [/resistance]

    [attack]
        name=sword_fire
        icon=attacks/sword-orcish-flaming.png
        #textdomain wesnoth-units
        description=_"sword"
        type=fire
        range=melee
        damage=9
        number=5
        [specials]
            {WEAPON_SPECIAL_BERSERK}
        [/specials]
    [/attack]
    [attack]
        name=sword_nofire
        icon="attacks/sword-orcish.png"
        description=_"sword"
        #textdomain wesnoth-ei
        type=blade
        range=melee
        damage=9
        number=3
    [/attack]

    [attack_anim]
        [filter_attack]
            name=sword_fire
        [/filter_attack]
        start_time=-250
        [frame]
            image="units/undead-wight/pyre-wight-attack[1~4].png:125"
            sound=horse-canter.wav
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
        [frame]
            image="units/undead-wight/pyre-wight.png:200"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sword_nofire
        [/filter_attack]
        start_time=-250
        [frame]
            image="units/undead-wight/pyre-wight-nofire[1~4].png:125"
            sound=horse-canter.wav
        [/frame]
        {SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
        [frame]
            image="units/undead-wight/pyre-wight.png:200"
        [/frame]
    [/attack_anim]
[/unit_type]
