[unit]
	id=Goblin Spearman
	name= _ "Goblin Spearman"
	race=goblin
	image="units/goblins/spearman.png"
	ellipse="misc/ellipse-nozoc"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=18
	movement_type=orcishfoot
	movement=4
	experience=18
	level=0
	alignment=chaotic
	advanceto=Goblin Impaler,Goblin Rouser
	cost=8
	usage=fighter
	unit_description= _ "In any litter of orcs, several are born much smaller and weaker than the rest. These runts are called 'Goblins' and are looked down on by the rest of their kin. In battle, these are given the most meager of equipment, and are used as a shield to give the Warlords time to prepare the real assault.

Some speculate that the existence of these creatures is the beginning of a failure of the orcish bloodline, though no one knows enough of their history to state anything conclusive."
	die_sound={SOUND_LIST:GOBLIN_DIE}
	{DEFENSE_ANIM "units/goblins/spearman-defend.png" "units/goblins/spearman.png" {SOUND_LIST:GOBLIN_HIT} }
	[attack]
		name=spear
		type=pierce
		range=melee
		damage=4
		number=3
		icon=attacks/spear-orcish.png
		[animation]
			direction=n
			hits=no
			[frame]
				begin=-200
				end=-100
				image=units/goblins/spearman-attack-n1.png
			[/frame]
			[frame]
				begin=-100
				end=100
				image=units/goblins/spearman-attack-n2.png
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image=units/goblins/spearman-attack-n1.png
			[/frame]
		[/animation]
		[animation]
			direction=n
			hits=yes
			[frame]
				begin=-200
				end=-100
				image=units/goblins/spearman-attack-n1.png
			[/frame]
			[frame]
				begin=-100
				end=100
				image=units/goblins/spearman-attack-n2.png
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image=units/goblins/spearman-attack-n1.png
			[/frame]
		[/animation]
		[animation]
			direction=s
			hits=no
			[frame]
				begin=-200
				end=-100
				image=units/goblins/spearman-attack-s1.png
			[/frame]
			[frame]
				begin=-100
				end=100
				image=units/goblins/spearman-attack-s2.png
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image=units/goblins/spearman-attack-s1.png
			[/frame]
		[/animation]
		[animation]
			direction=s
			hits=yes
			[frame]
				begin=-200
				end=-100
				image=units/goblins/spearman-attack-s1.png
			[/frame]
			[frame]
				begin=-100
				end=100
				image=units/goblins/spearman-attack-s2.png
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image=units/goblins/spearman-attack-s1.png
			[/frame]
		[/animation]

		[animation]
			direction=ne,nw
			hits=no
			[frame]
				begin=-200
				end=-100
				image=units/goblins/spearman-attack-ne1.png
			[/frame]
			[frame]
				begin=-100
				end=100
				image=units/goblins/spearman-attack-ne2.png
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image=units/goblins/spearman-attack-ne1.png
			[/frame]
		[/animation]
		[animation]
			direction=ne,nw
			hits=yes
			[frame]
				begin=-200
				end=-100
				image=units/goblins/spearman-attack-ne1.png
			[/frame]
			[frame]
				begin=-100
				end=100
				image=units/goblins/spearman-attack-ne2.png
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image=units/goblins/spearman-attack-ne1.png
			[/frame]
		[/animation]
		[animation]
			direction=se,sw
			hits=no
			[frame]
				begin=-200
				end=-100
				image=units/goblins/spearman-attack-se1.png
			[/frame]
			[frame]
				begin=-100
				end=100
				image=units/goblins/spearman-attack-se2.png
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image=units/goblins/spearman-attack-se1.png
			[/frame]
		[/animation]
		[animation]
			direction=se,sw
			hits=yes
			[frame]
				begin=-200
				end=-100
				image=units/goblins/spearman-attack-se1.png
			[/frame]
			[frame]
				begin=-100
				end=100
				image=units/goblins/spearman-attack-se2.png
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image=units/goblins/spearman-attack-se1.png
			[/frame]
		[/animation]
	[/attack]



	[attack]
		name=spear
		type=pierce
		range=ranged
		damage=3
		number=1
		icon=attacks/javelin-orcish.png
		[animation]
			direction=n
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-100
				end=100
				image="units/goblins/spearman-attack-n1.png"
				sound={SOUND_LIST:MISS}
			[/frame]
		[/animation]
		[animation]
			direction=n
			hits=yes
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-100
				end=100
				image="units/goblins/spearman-attack-n1.png"
				sound=spear.wav
			[/frame]
		[/animation]

		[animation]
			direction=ne,nw
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-100
				end=100
				image="units/goblins/spearman-attack-ne1.png"
				sound={SOUND_LIST:MISS}
			[/frame]
		[/animation]
		[animation]
			direction=ne,nw
			hits=yes
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-100
				end=100
				image="units/goblins/spearman-attack-ne1.png"
				sound=spear.wav
			[/frame]
		[/animation]

		[animation]
			direction=s
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-100
				end=100
				image="units/goblins/spearman-attack-s1.png"
				sound={SOUND_LIST:MISS}
			[/frame]
		[/animation]
		[animation]
			direction=s
			hits=yes
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-100
				end=100
				image="units/goblins/spearman-attack-s1.png"
				sound=spear.wav
			[/frame]
		[/animation]

		[animation]
			direction=se,sw
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-100
				end=100
				image="units/goblins/spearman-attack-se1.png"
				sound={SOUND_LIST:MISS}
			[/frame]
		[/animation]
		[animation]
			direction=se,sw
			hits=yes
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-100
				end=100
				image="units/goblins/spearman-attack-se1.png"
				sound=spear.wav
			[/frame]
		[/animation]

	[/attack]
[/unit]
