#textdomain wesnoth-units
[unit]
    id=Dwarvish Dragonguard
    name= _ "Dwarvish Dragonguard"
    race=dwarf
    image="units/dwarves/dragonguard.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=59
    movement_type=dwarvishfoot
    movement=4
    experience=150
    level=3
    alignment=neutral
    advanceto=null
    {AMLA_DEFAULT}
    undead_variation=dwarf
    cost=46
    usage=archer
    unit_description= _ "It is not clear why the Dragonguards are called what they are, a name given by their dwarven brethren. Some speculate that the name comes from their weapon of choice, these strange staves that belch fire and death. Others have surmised that it is because such weapons would be a threat against even a true Dragon, should such a thing be seen again in the known world. Whatever the case, it is for these weapons that the guardians of the great Dwarven citadels are both renowned and feared; weapons that have broken the mightiest of warriors in a single blow."
    die_sound={SOUND_LIST:DWARF_DIE}
    {DEFENSE_ANIM_RANGE "units/dwarves/dragonguard-defend.png" "units/dwarves/dragonguard-melee1.png" {SOUND_LIST:DWARF_HIT} melee}
    {DEFENSE_ANIM_RANGE "units/dwarves/dragonguard-defend.png" "units/dwarves/dragonguard.png" {SOUND_LIST:DWARF_HIT} ranged}
    [attack]
        name=dagger
        description=_"dagger"
        icon=attacks/dagger-human.png
        type=blade
        range=melee
        damage=9
        number=3
    [/attack]
    [attack]
        name=dragonstaff
        description=_"dragonstaff"
        type=pierce
        range=ranged
        damage=40
        number=1
        icon=attacks/dragonstaff.png
    [/attack]
    [attack_anim]
        [attack_filter]
            name=dragonstaff
        [/attack_filter]
        direction=n
	    missile_start_time=-250

        [frame]
            begin=-600
            end=-400
            image="units/dwarves/dragonguard-attack-ranged-n.png"
        [/frame]
        [if]
            hits=yes
		    missile_offset=0.5~1.1:250,1.1~1.5:200,1.5~1.7:360
			[missile_frame]
				duration=100
				halo="projectiles/muzzle-flash-n-1.png"
			[/missile_frame]
			[missile_frame]
				duration=80
				halo="projectiles/muzzle-flash-n-2.png"
			[/missile_frame]
			[missile_frame]
				duration=70
				halo="projectiles/muzzle-flash-n-3.png"
			[/missile_frame]

            [frame]
                begin=-400
                end=0
                image="units/dwarves/dragonguard-attack-ranged-n.png"
                sound=dragonstick.ogg
            [/frame]

			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-4.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-5.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-6.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-7.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-8.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-9.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-10.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-11.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-12.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-13.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-14.png"
			[/missile_frame]
        [/if]
        [else]
            hits=no
			missile_start_time=-250
			missile_offset=0.1

            [frame]
                begin=-400
                end=0
                image="units/dwarves/dragonguard-attack-ranged-n.png"
                sound=thunderstick-miss.ogg
            [/frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-1.png"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-2.png"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-3.png"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-4.png"
			[/missile_frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [attack_filter]
            name=dragonstaff
        [/attack_filter]
        direction=ne,nw
	    missile_start_time=-250

        [frame]
            begin=-600
            end=-400
            image="units/dwarves/dragonguard-defend.png"
        [/frame]
        [if]
            hits=yes
		    missile_offset=0.5~1.1:250,1.1~1.5:200,1.5~1.7:360
			[missile_frame]
				duration=100
				halo="projectiles/muzzle-flash-ne-1.png"
			[/missile_frame]
			[missile_frame]
				duration=80
				halo="projectiles/muzzle-flash-ne-2.png"
			[/missile_frame]
			[missile_frame]
				duration=70
				halo="projectiles/muzzle-flash-ne-3.png"
			[/missile_frame]

            [frame]
                begin=-400
                end=0
                image="units/dwarves/dragonguard-attack-ranged-ne.png"
                sound=dragonstick.ogg
            [/frame]

			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-4.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-5.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-6.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-7.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-8.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-9.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-10.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-11.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-12.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-13.png"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-14.png"
			[/missile_frame]
        [/if]
        [else]
            hits=no
			missile_start_time=-250
			missile_offset=0.1

            [frame]
                begin=-400
                end=0
                image="units/dwarves/dragonguard-attack-ranged-ne.png"
                sound=thunderstick-miss.ogg
            [/frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-1.png"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-2.png"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-3.png"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-4.png"
			[/missile_frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [attack_filter]
            name=dragonstaff
        [/attack_filter]
        direction=se,sw
	    missile_start_time=-250

        [frame]
            begin=-600
            end=-400
            image="units/dwarves/dragonguard-defend.png"
        [/frame]
        [if]
            hits=yes
		    missile_offset=0.5~1.1:250,1.1~1.5:200,1.5~1.7:360
			[missile_frame]
				duration=100
				halo="projectiles/muzzle-flash-se-1.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=80
				halo="projectiles/muzzle-flash-se-2.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=70
				halo="projectiles/muzzle-flash-se-3.png~FL(vert)"
			[/missile_frame]

            [frame]
                begin=-400
                end=0
                image="units/dwarves/dragonguard-attack-ranged-se.png"
                sound=dragonstick.ogg
            [/frame]

			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-4.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-5.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-6.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-7.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-8.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-9.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-10.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-11.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-12.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-13.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-14.png~FL(vert)"
			[/missile_frame]
        [/if]
        [else]
            hits=no
			missile_start_time=-250
			missile_offset=0.1

            [frame]
                begin=-400
                end=0
                image="units/dwarves/dragonguard-attack-ranged-se.png"
                sound=thunderstick-miss.ogg
            [/frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-1.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-2.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-3.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-4.png~FL(vert)"
			[/missile_frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [attack_filter]
            name=dragonstaff
        [/attack_filter]
        direction=s
	    missile_start_time=-250

        [frame]
            begin=-600
            end=-400
            image="units/dwarves/dragonguard-attack-ranged-s.png"
        [/frame]
        [if]
            hits=yes
		    missile_offset=0.5~1.1:250,1.1~1.5:200,1.5~1.7:360
			[missile_frame]
				duration=100
				halo="projectiles/muzzle-flash-s-1.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=80
				halo="projectiles/muzzle-flash-s-2.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=70
				halo="projectiles/muzzle-flash-s-3.png~FL(vert)"
			[/missile_frame]

            [frame]
                begin=-400
                end=0
                image="units/dwarves/dragonguard-attack-ranged-s.png"
                sound=dragonstick.ogg
            [/frame]

			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-4.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-5.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-6.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-7.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-8.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-9.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-10.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-11.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-12.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-13.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=60
				halo="projectiles/muzzle-flash-14.png~FL(vert)"
			[/missile_frame]
        [/if]
        [else]
            hits=no
			missile_start_time=-250
			missile_offset=0.1

            [frame]
                begin=-400
                end=0
                image="units/dwarves/dragonguard-attack-ranged-s.png"
                sound=thunderstick-miss.ogg
            [/frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-1.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-2.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-3.png~FL(vert)"
			[/missile_frame]
			[missile_frame]
				duration=100
				halo="projectiles/misfire-spark-4.png~FL(vert)"
			[/missile_frame]
        [/else]
    [/attack_anim]
    [attack_anim]
        [attack_filter]
            name=dagger
        [/attack_filter]
        [frame]
            begin=-200
            end=-100
            image="units/dwarves/dragonguard-melee1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=50
                image="units/dwarves/dragonguard-melee2.png"
                sound=dagger-swish.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=50
                image="units/dwarves/dragonguard-melee2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=50
            end=150
            image="units/dwarves/dragonguard-melee1.png"
        [/frame]
    [/attack_anim]
[/unit]
