#textdomain wesnoth-units
[unit_type]
    id=Qanas
    name= _ "Qanas"
    race=khalifate
    image="units/khalifate/qanas.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=48
    movement_type=khalifatehorse
    movement=7
    experience=70
    level=2
    alignment=lawful
    advances_to=Hadaf
    cost=34
    usage=archer
    description= _ "Those horsemen who are not skilled enough to join the ranks of the Faris or quick enough with a bow for the Saree are instead placed with the Qanas. Far from being a sign of failure, the Qanas were created as a mounted counterpart to the Muharib, supporting the foot troops with mace or bow as needed. Qanas are often used to draw enemies into a position where they will be surrounded and crushed by Faris."
    die_sound={SOUND_LIST:ELF_HIT}
    {DEFENSE_ANIM "units/khalifate/qanas.png" "units/khalifate/qanas.png" {SOUND_LIST:ELF_HIT} }
    [attack]
        name=mace
        description= _ "mace"
        type=impact
        range=melee
        damage=8
        number=3
    [/attack]
    [attack]
        name=bow
        description=_"bow"
        icon=attacks/bow-elven.png
        type=pierce
        range=ranged
        damage=7
        number=3
    [/attack]

    [attack_anim]
        [filter_attack]
            name=mace
        [/filter_attack]

        start_time=-250
        horse_sound_start_time=-250

        [frame]
            image="units/khalifate/qanas.png:400"
        [/frame]

        [horse_sound_frame]
            sound=horse-canter.wav
        [/horse_sound_frame]

        {SOUND:HIT_AND_MISS mace.wav {SOUND_LIST:MISS} -75}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=bow
        [/filter_attack]

        start_time=-250
        missile_start_time=-150

        [missile_frame]
            duration=150
            image="projectiles/missile-n.png"
            image_diagonal="projectiles/missile-ne.png"
        [/missile_frame]

        [frame]
            image="units/khalifate/qanas.png:300"
        [/frame]

        {SOUND:HIT_AND_MISS bow-puny.ogg bow-puny-miss.ogg -225}
    [/attack_anim]
[/unit_type]
