#textdomain wesnoth-units
[unit_type]
    id=Orcish Ruler
    name= _ "Orcish Ruler"
    race=orc
    image="units/orcs/ruler.png"
    {LEADING_ANIM "units/orcs/ruler-lead-2.png" "units/orcs/ruler-lead-1.png"}
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=60
    movement_type=orcishfoot
    movement=6
    experience=120
    level=2
    alignment=chaotic
    advances_to=Orcish Sovereign
    cost=35
    usage=mixed fighter
    description= _ "Any orc who can keep a large tribe from feuding and in-fighting is often unusually intelligent and commanding, and is inevitably very strong as well. They are skilled with both sword and bow, but their real talent lies in their rare ability to rally other orcs to battle, to give orders that are followed not out of fear, but loyalty."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}
    die_sound={SOUND_LIST:ORC_DIE}
    {DEFENSE_ANIM_RANGE "units/orcs/ruler-defend-2.png" "units/orcs/ruler-defend-1.png" {SOUND_LIST:ORC_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/orcs/ruler-ranged-defend.png" "units/orcs/ruler-ranged.png" {SOUND_LIST:ORC_HIT} ranged}
    [abilities]
        {ABILITY_LEADERSHIP_LEVEL_2}
    [/abilities]
    [attack]
        name=greatsword
        description=_"greatsword"
        icon=attacks/greatsword-orcish.png
        type=blade
        range=melee
        damage=9
        number=3
    [/attack]
    [attack]
        name=crossbow
        description=_"crossbow"
        icon=attacks/crossbow-orcish.png
        type=pierce
        range=ranged
        damage=6
        number=3
    [/attack]
    [attack_anim]
        [filter_attack]
            name=crossbow
        [/filter_attack]
        [missile_frame]
            begin=-150
            end=0
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]
        [if]
            hits=yes
            [frame]
                begin=-300
                end=-150
                image="units/orcs/ruler-ranged-attack-1.png"
                sound=crossbow.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-300
                end=-150
                image="units/orcs/ruler-ranged-attack-1.png"
                sound=crossbow-miss.ogg
            [/frame]
        [/else]
        [frame]
            begin=-150
            end=0
            image="units/orcs/ruler-ranged-attack-2.png"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=greatsword
        [/filter_attack]

        offset=0.0~0.3,0.3~0.45,0.45~0.3,0.3~0.0
        start_time=-300
        [frame]
            duration=50
            image="units/orcs/ruler.png"
        [/frame]
        [frame]
            duration=100
            image="units/orcs/ruler-attack-sword-1.png"
        [/frame]
        [frame]
            duration=100
            image="units/orcs/ruler-attack-sword-2.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                duration=75
                image="units/orcs/ruler-attack-sword-3.png"
                sound={SOUND_LIST:SWORD_SWISH}
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                duration=75
                image="units/orcs/ruler-attack-sword-3.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            duration=100
            image="units/orcs/ruler-attack-sword-4.png"
        [/frame]
        [frame]
            duration=100
            image="units/orcs/ruler-attack-sword-5.png"
        [/frame]
        [frame]
            duration=75
            image="units/orcs/ruler-attack-sword-6.png"
        [/frame]
        [frame]
            duration=50
            image="units/orcs/ruler.png"
        [/frame]
    [/attack_anim]
[/unit_type]
