[unit]
	id=Javelineer
	name= _ "Javelineer"
	race=human
	image="units/human-loyalists/javelineer.png"
	profile="portraits/Jason_Lutes/human-javelineer.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=48
	movement_type=smallfoot
	movement=5
	experience=100
	level=2
	alignment=lawful
	advanceto=null
	{AMLA_TOUGH 3}
	cost=25
	usage=fighter
	unit_description= _ "Spearmen almost always equip themselves with a few javelins, to harry, if not kill, enemies at range. Some, however, take to them rather well, finding that they have a natural talent in their use. Javelineers are a valuable asset to an army, being able to supplement their skill in melee combat with an ability to handle distant foes. They can hurl javelins into enemy ranks from a distance, often without retribution, and still hold their ground in melee.

Special Notes:"+{SPECIAL_NOTES_FIRSTSTRIKE}
	die_sound={SOUND_LIST:HUMAN_DIE}
	{DEFENSE_ANIM "units/human-loyalists/javelineer-defend.png" "units/human-loyalists/javelineer.png" {SOUND_LIST:HUMAN_HIT} }
	[resistance]
		pierce=60
	[/resistance]
	[attack]
		name=spear
		type=pierce
		range=melee
		damage=8
		number=3
		[specials]
			{WEAPON_SPECIAL_FIRSTSTRIKE}
		[/specials]
		[animation]
			hits=no
			[frame]
				begin=-300
				end=-200
				image="units/human-loyalists/javelineer-attack-melee-1.png"
			[/frame]
			[frame]
				begin=-200
				end=-100
				image="units/human-loyalists/javelineer-attack-melee-2.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/human-loyalists/javelineer-attack-melee-3.png"
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=175
				image="units/human-loyalists/javelineer-attack-ranged-1.png"
			[/frame]
			[frame]
				begin=175
				end=250
				image="units/human-loyalists/javelineer-attack-melee-1.png"
			[/frame]
			[frame]
				begin=250
				end=300
				image="units/human-loyalists/javelineer.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[frame]
				begin=-300
				end=-200
				image="units/human-loyalists/javelineer-attack-melee-1.png"
			[/frame]
			[frame]
				begin=-200
				end=-100
				image="units/human-loyalists/javelineer-attack-melee-2.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/human-loyalists/javelineer-attack-melee-3.png"
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=175
				image="units/human-loyalists/javelineer-attack-ranged-1.png"
			[/frame]
			[frame]
				begin=175
				end=250
				image="units/human-loyalists/javelineer-attack-melee-1.png"
			[/frame]
			[frame]
				begin=250
				end=300
				image="units/human-loyalists/javelineer.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=spear
		icon=attacks/javelin-human.png
		type=pierce
		range=ranged
		damage=11
		number=2
		[animation]
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-250
				end=-150
				image="units/human-loyalists/javelineer-attack-ranged-1.png"
			[/frame]
			[frame]
				begin=-150
				end=-50
				image="units/human-loyalists/javelineer-attack-ranged-2.png"
			[/frame]
			[frame]
				begin=-50
				end=250
				image="units/human-loyalists/javelineer-attack-ranged-3.png"
				sound={SOUND_LIST:MISS}
			[/frame]
			[frame]
				begin=250
				end=300
				image="units/human-loyalists/javelineer-attack-ranged-4.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-250
				end=-150
				image="units/human-loyalists/javelineer-attack-ranged-1.png"
			[/frame]
			[frame]
				begin=-150
				end=-50
				image="units/human-loyalists/javelineer-attack-ranged-2.png"
			[/frame]
			[frame]
				begin=-50
				end=250
				image="units/human-loyalists/javelineer-attack-ranged-3.png"
				sound=spear.wav
			[/frame]
			[frame]
				begin=250
				end=300
				image="units/human-loyalists/javelineer-attack-ranged-4.png"
			[/frame]
		[/animation]
	[/attack]
[/unit]
