#textdomain wesnoth-units
[unit]
    id=Dwarvish Thunderguard
    name= _ "Dwarvish Thunderguard"
    race=dwarf
    image="units/dwarves/thunderguard.png"
    {MAGENTA_IS_THE_TEAM_COLOR}
    hitpoints=44
    movement_type=dwarvishfoot
    movement=4
    experience=95
    level=2
    alignment=neutral
    advanceto=Dwarvish Dragonguard
    undead_variation=dwarf
    cost=30
    usage=fighter
    unit_description= _ "The Dwarven Thunderguards are famed for their curious weaponry, these strange staves of wood and iron that make a thunderous noise in their anger. The machinations behind this weaponry are a mystery, a secret taken to the grave by the dwarves of Knalga who wield them, and are assumed to have even forged them. The most that is known are reports of dwarves pouring a strange black dust into the mouth of their weapons, which some say is a food to fuel the beast imprisoned within.

Though a single shot from these 'thundersticks' can take several minutes to prepare, the results are seen by the Dwarves as being well worth the wait."
    die_sound={SOUND_LIST:DWARF_DIE}
    {DEFENSE_ANIM "units/dwarves/thunderguard-defend.png" "units/dwarves/thunderguard.png" {SOUND_LIST:DWARF_HIT} }
    [attack]
        name=dagger
        description=_"dagger"
        icon=attacks/dagger-human.png
        type=blade
        range=melee
        damage=6
        number=3
    [/attack]
    [attack]
        name=thunderstick
        description=_"thunderstick"
        type=pierce
        range=ranged
        damage=28
        number=1
        icon=attacks/thunderstick.png
    [/attack]
    [attack_anim]
        [attack_filter]
            name=thunderstick
        [/attack_filter]
        direction=n
	    missile_start_time=-250

        [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/thunderguard-attack-ranged-n.png"
                sound=thunderstick.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/thunderguard-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=thunderstick
        [/attack_filter]
        direction=ne,nw
	    missile_start_time=-250
        [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/thunderguard-attack-ranged-ne.png"
                sound=thunderstick.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/thunderguard-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=thunderstick
        [/attack_filter]
        direction=se,sw
	    missile_start_time=-250
        [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/thunderguard-attack-ranged-se.png"
                sound=thunderstick.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/thunderguard-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=thunderstick
        [/attack_filter]
        direction=s
	    missile_start_time=-250

        [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/thunderguard-attack-ranged-s.png"
                sound=thunderstick.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/thunderguard-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=-250
            end=-200
            image="units/dwarves/thunderguard.png"
        [/frame]
        [frame]
            begin=-200
            end=-100
            image="units/dwarves/thunderguard-attack1.png"
        [/frame]
        [if]
            hits=yes
            [frame]
                begin=-100
                end=50
                image="units/dwarves/thunderguard-attack2.png"
                sound=dagger-swish.wav
            [/frame]
        [/if]
        [else]
            hits=no
            [frame]
                begin=-100
                end=50
                image="units/dwarves/thunderguard-attack2.png"
                sound={SOUND_LIST:MISS}
            [/frame]
        [/else]
        [frame]
            begin=50
            end=100
            image="units/dwarves/thunderguard-attack1.png"
        [/frame]
        [frame]
            begin=100
            end=125
            image="units/dwarves/thunderguard.png"
        [/frame]
    [/attack_anim]
[/unit]
