#textdomain wesnoth-ei
[unit_type]
    id=King of Wesnoth
    name=_"King of Wesnoth"
    race=human
    gender=male
    image="units/human-loyalists/royal-warrior.png"
    profile=portraits/konrad_II-sceptre.webp
    {DEFENSE_ANIM "units/human-loyalists/royal-warrior-defend.png" "units/human-loyalists/royal-warrior.png" {SOUND_LIST:HUMAN_HIT} }
    {LEADING_ANIM "units/human-loyalists/royal-warrior-leading.png" "units/human-loyalists/royal-warrior.png" 28,-19}
    hitpoints=64
    movement_type=armoredfoot
    movement=6
    [abilities]
        {ABILITY_LEADERSHIP}
    [/abilities]
    experience=250
    {AMLA_DEFAULT}
    level=5
    cost=200
    usage=fighter
    description=_"Kings are trained rigorously in the combat arts, sometimes out of necessity, more often out of tradition from when their priors made their wealth in war. Fitted in armor so skillfully made as to incite envy even from many dwarvish smiths, these sovereigns are well conditioned to their heavy armor and can maneuver across the battlefield much faster than their gilded plate would suggest."

    die_sound={SOUND_LIST:HUMAN_DIE}
    [attack]
        name=mace
        #textdomain wesnoth-units
        description= _"morning star"
        #textdomain wesnoth-ei
        icon=attacks/mace-spiked.png
        type=impact
        range=melee
        damage=13
        number=3
    [/attack]
    [attack] # can't use the default SCEPTRE_OF_FIRE_EFFECT, because it has a blank animation that will overwrite Konrad's
        name=sceptre of fire
        description= _ "sceptre of fire"
        icon=attacks/fireball.png
        type=fire
        range=ranged
        [specials]
            {WEAPON_SPECIAL_MAGICAL}
        [/specials]
        damage=15
        number=4
    [/attack]

    [attack_anim]
        [filter_attack]
            name=mace
        [/filter_attack]
        start_time=-200
        [frame]
            image="units/human-loyalists/royal-warrior.png:50"
        [/frame]
        [frame]
            image="units/human-loyalists/royal-warrior-attack[1~2].png:[75,175]"
        [/frame]
        {SOUND:HIT_AND_MISS mace.ogg mace-miss.ogg -100}
        [frame]
            image="units/human-loyalists/royal-warrior.png:75"
        [/frame]
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=sceptre of fire
        [/filter_attack]
        start_time=-300
        [frame]
            image="units/human-loyalists/royal-warrior.png:25"
        [/frame]
        [frame]
            image="units/royal-warrior/royal-warrior-sceptre-1.png:275"
        [/frame]

        #         [frame]
        #             image="units/royal-warrior/royal-warrior-sceptre-1.png:25"
        #         [/frame]
        #         [frame]
        #             image="units/royal-warrior/royal-warrior-sceptre-2.png:50"
        #         [/frame]
        #         [frame]
        #             image="units/royal-warrior/royal-warrior-sceptre-3.png:100"
        #         [/frame]
        #         [frame]
        #             image="units/royal-warrior/royal-warrior-sceptre-4.png:70"
        #         [/frame]
        #         [frame]
        #             image="units/royal-warrior/royal-warrior-sceptre-5.png:60"
        #         [/frame]
        #         [frame]
        #             image="units/royal-warrior/royal-warrior-sceptre-6.png:50"
        #         [/frame]
        #         [frame]
        #             image="units/royal-warrior/royal-warrior-sceptre-7.png:40"
        #         [/frame]
        #         [frame]
        #             image="units/royal-warrior/royal-warrior-sceptre-8.png:30"
        #         [/frame]
        #         [frame]
        #             image="units/royal-warrior/royal-warrior-sceptre-1.png:25"
        #         [/frame]

        {MISSILE_FRAME_FIREBALL_XY 20 -23}
        sound_start_time=-200
        [sound_frame]
            sound=fire.wav
        [/sound_frame]
    [/attack_anim]

    [recruiting_anim]
        start_time=-250
        [frame]
            image="units/human-loyalists/royal-warrior-leading.png:300"
        [/frame]
        halo_start_time=-100
        [halo_frame]
            halo="halo/misc/leadership-flare-[1~13].png:20"
            halo_x,halo_y=28,-19
        [/halo_frame]
    [/recruiting_anim]
[/unit_type]
