#textdomain wesnoth-units
[unit_type]
    id=Naffat
    name= _ "Naffat"
    race=khalifate
    ignore_race_traits=yes
    {TRAIT_QUICK}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}
    image="units/khalifate/naffat.png"
    hitpoints=31
    movement_type=khalifatefoot
    movement=5
    experience=44
    level=1
    alignment=lawful
    # Below unit id changed to use underscores in unit ID only (not in displayed name) to fix bug #18117
    advances_to=Qatif_al_nar
    cost=19
    usage=archer
    {MAGENTA_IS_THE_TEAM_COLOR}
    description= _ "Naffat are a necessary evil in the ranks of Khalifate armies, utilizing fire to burn down enemy fortifications and sow terror among their ranks. While the use of fire in warfare is not a novel concept, the flames of the Naffat have proven disturbingly difficult for their enemies to extinguish."
    die_sound={SOUND_LIST:HUMAN_DIE}
    {DEFENSE_ANIM "units/khalifate/naffat.png" "units/khalifate/naffat.png" {SOUND_LIST:HUMAN_HIT} }
    [attack]
        name=naphtha attack
        description= _ "naphtha attack"
        icon=attacks/torch.png
        type=fire
        range=melee
        damage=8
        number=2
    [/attack]
    [attack]
        name=fire arrow
        description= _ "fire arrow"
        icon=attacks/bow-elven.png
        type=fire
        range=ranged
        damage=6
        number=3
    [/attack]

    [attack_anim]
        [filter_attack]
            name=naphtha attack
        [/filter_attack]

        start_time=-200

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

        {SOUND:HIT_AND_MISS melee-fire.ogg torch-miss.ogg -150}
    [/attack_anim]
    [attack_anim]
        [filter_attack]
            name=fire arrow
        [/filter_attack]

        start_time=-225
        missile_start_time=-150

        [if]
            hits=yes
            [missile_frame]
                duration=150
                image="projectiles/missile-fire-n.png"
                image_diagonal="projectiles/missile-fire-ne.png"
                offset=0~0.8
            [/missile_frame]
            {FIRE_BURST_SMALL}
            [frame]
                image="units/khalifate/naffat.png:300"
                sound=bow-puny-fire.ogg
            [/frame]
        [/if]
        [else]
            hits=no
            [missile_frame]
                duration=150
                image="projectiles/missile-fire-n.png"
                image_diagonal="projectiles/missile-fire-ne.png"
            [/missile_frame]
            [frame]
                image="units/khalifate/naffat.png:300"
                sound=bow-puny-fire-miss.ogg
            [/frame]
        [/else]
    [/attack_anim]
[/unit_type]
