#textdomain wesnoth-units
[unit_type]
    id=Revenant
    name= _ "Revenant"
    # wmllint: general spelling revenants
    race=undead
    image="units/undead-skeletal/revenant.png"
    profile="portraits/undead/revenant.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=47
    movement_type=undeadfoot
    movement=5
    experience=85
    level=2
    alignment=chaotic
    advances_to=Draug
    cost=28
    usage=fighter
    description= _ "Given false life to do battle once more, the creatures known as Revenants were clearly great warriors in their time, though the memory of that time is allmost wholly lost to their undead selves. Even the sorcerers who raised them can only speculate on their past. Such questions aside, a Revenant is a powerful tool in combat: a fearless warrior that feels no pain and will fight to the bitter end."+{SPECIAL_NOTES}+{SPECIAL_NOTES_SUBMERGE}
    die_sound=skeleton-big-die.ogg
    [portrait]
        size=400
        side="left"
        mirror="false"
        image="portraits/undead/transparent/revenant.png"
    [/portrait]
    [portrait]
        size=400
        side="right"
        mirror="true"
        image="portraits/undead/transparent/revenant.png"
    [/portrait]
    [abilities]
        {ABILITY_SUBMERGE}
    [/abilities]
    [resistance]
        blade=60
        pierce=40
        impact=120
    [/resistance]
    [attack]
        name=axe
        description=_"axe"
        icon=attacks/axe-undead.png
        type=blade
        range=melee
        damage=8
        number=4
    [/attack]
    [recruit_anim]
        [frame]
            begin=-200
            end=100
            image="units/undead-skeletal/revenant-dying-7.png"
            alpha="0~1:300"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/undead-skeletal/revenant-dying-6.png"
        [/frame]
        [frame]
            begin=200
            end=300
            image="units/undead-skeletal/revenant-dying-5.png"
        [/frame]
        [frame]
            begin=300
            end=400
            image="units/undead-skeletal/revenant-dying-4.png"
        [/frame]
        [frame]
            begin=400
            end=500
            image="units/undead-skeletal/revenant-dying-3.png"
        [/frame]
        [frame]
            begin=500
            end=600
            image="units/undead-skeletal/revenant-dying-2.png"
        [/frame]
        [frame]
            begin=600
            end=700
            image="units/undead-skeletal/revenant-dying-1.png"
        [/frame]
    [/recruit_anim]
    [death]
        [frame]
            begin=0
            end=100
            image="units/undead-skeletal/revenant-dying-1.png"
        [/frame]
        [frame]
            begin=100
            end=200
            image="units/undead-skeletal/revenant-dying-2.png"
        [/frame]
        [frame]
            begin=200
            end=300
            image="units/undead-skeletal/revenant-dying-3.png"
        [/frame]
        [frame]
            begin=300
            end=400
            image="units/undead-skeletal/revenant-dying-4.png"
        [/frame]
        [frame]
            begin=400
            end=500
            image="units/undead-skeletal/revenant-dying-5.png"
        [/frame]
        [frame]
            begin=500
            end=600
            image="units/undead-skeletal/revenant-dying-6.png"
        [/frame]
        [frame]
            begin=600
            end=700
            image="units/undead-skeletal/revenant-dying-7.png"
        [/frame]
    [/death]
    {DEFENSE_ANIM "units/undead-skeletal/revenant-defend-2.png" "units/undead-skeletal/revenant-defend-1.png" {SOUND_LIST:SKELETON_BIG_HIT} }
    [attack_anim]
        [filter_attack]
            name=axe
        [/filter_attack]
        offset=0.0~0.35,0.35~0.55,0.55~0.35,0.35~0.0
        start_time=-300
        [frame]
            duration=50
            image="units/undead-skeletal/revenant-attack-1.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead-skeletal/revenant-attack-2.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead-skeletal/revenant-attack-3.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead-skeletal/revenant-attack-4.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=50
                image="units/undead-skeletal/revenant-attack-5.png"
                sound=axe.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=50
                image="units/undead-skeletal/revenant-attack-5.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=75
            image="units/undead-skeletal/revenant-attack-6.png"
        [/frame]
        [frame]
            duration=75
            image="units/undead-skeletal/revenant-attack-7.png"
        [/frame]
        [frame]
            duration=75
            image="units/undead-skeletal/revenant-attack-8.png"
        [/frame]
        [frame]
            duration=75
            image="units/undead-skeletal/revenant-attack-9.png"
        [/frame]
        [frame]
            duration=50
            image="units/undead-skeletal/revenant-attack-10.png"
        [/frame]
    [/attack_anim]
[/unit_type]
