[unit]
	id=Elvish Sharpshooter
	name= _ "Elvish Sharpshooter"
	race=elf
	gender=male,female
	image="units/elves-wood/sharpshooter.png"
	image_long="units/elves-wood/sharpshooter-bow.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=47
	movement_type=woodland
	movement=6
	experience=100
	level=3
	alignment=neutral
	advanceto=null
	{AMLA_TOUGH 3}
	undead_variation=archer
	cost=55
	usage=archer
	unit_description= _ "A story once wandered about, of an elf who stopped an arrow by shooting it out of the air with one of his own. It is a testament to the skill of the elves that such a story could be taken seriously. The sharpshooters of the elves have, quite simply, mastered the art of archery.

Special Notes:"+{SPECIAL_NOTES_MARKSMAN}
	die_sound={SOUND_LIST:ELF_HIT}
#	[death]
#		[frame]
#			begin=0
#			end=100
#			image="units/elves-wood/sharpshooter-die1.png"
#		[/frame]
#		[frame]
#			begin=100
#			end=200
#			image="units/elves-wood/sharpshooter-die2.png"
#		[/frame]
#		[frame]
#			begin=200
#			end=300
#			image="units/elves-wood/sharpshooter-die3.png"
#		[/frame]
#		[frame]
#			begin=300
#			end=400
#			image="units/elves-wood/sharpshooter-die4.png"
#		[/frame]
#	[/death]
	[attack]
		name=sword
		icon=attacks/sword-elven.png
		type=blade
		range=melee
		damage=7
		number=2
		[animation]
			hits=no
			[frame]
				begin=-200
				end=-175
				image="units/elves-wood/sharpshooter.png"
			[/frame]
			[frame]
				begin=-175
				end=-100
				image="units/elves-wood/sharpshooter-melee-1.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/elves-wood/sharpshooter-melee-2.png"
				sound={SOUND_LIST:MISS}
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/elves-wood/sharpshooter-melee-1.png"
			[/frame]
			[frame]
				begin=150
				end=175
				image="units/elves-wood/sharpshooter.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[frame]
				begin=-200
				end=-175
				image="units/elves-wood/sharpshooter.png"
			[/frame]
			[frame]
				begin=-175
				end=-100
				image="units/elves-wood/sharpshooter-melee-1.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/elves-wood/sharpshooter-melee-2.png"
				sound={SOUND_LIST:SWORD_SWISH}
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/elves-wood/sharpshooter-melee-1.png"
			[/frame]
			[frame]
				begin=150
				end=175
				image="units/elves-wood/sharpshooter.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=longbow
		icon=attacks/bow-elven-magic.png
		type=pierce
		[specials]
			{WEAPON_SPECIAL_MARKSMAN}
		[/specials]
		range=ranged
		damage=10
		number=5
		[animation]
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/missile-n.png"
				image_diagonal="projectiles/missile-ne.png"
			[/missile_frame]
			[frame]
				begin=-445
				end=-380
				image="units/elves-wood/sharpshooter-bow.png"
			[/frame]
			[frame]
				begin=-380
				end=-305
				image="units/elves-wood/sharpshooter-bow-attack1.png"
				sound=bow-miss.ogg
			[/frame]
			[frame]
				begin=-305
				end=-230
				image="units/elves-wood/sharpshooter-bow-attack2.png"
			[/frame]
			[frame]
				begin=-230
				end=-130
				image="units/elves-wood/sharpshooter-bow-attack3.png"
			[/frame]
			[frame]
				begin=-130
				end=0
				image="units/elves-wood/sharpshooter-bow-attack4.png"
			[/frame]
			[frame]
				begin=0
				end=100
				image="units/elves-wood/sharpshooter-bow.png"
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/elves-wood/sharpshooter.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/missile-n.png"
				image_diagonal="projectiles/missile-ne.png"
			[/missile_frame]
			[frame]
				begin=-445
				end=-380
				image="units/elves-wood/sharpshooter-bow.png"
			[/frame]
			[frame]
				begin=-380
				end=-305
				image="units/elves-wood/sharpshooter-bow-attack1.png"
				sound=bow-miss.ogg
			[/frame]
			[frame]
				begin=-305
				end=-230
				image="units/elves-wood/sharpshooter-bow-attack2.png"
			[/frame]
			[frame]
				begin=-230
				end=-130
				image="units/elves-wood/sharpshooter-bow-attack3.png"
			[/frame]
			[frame]
				begin=-130
				end=0
				image="units/elves-wood/sharpshooter-bow-attack4.png"
			[/frame]
			[frame]
				begin=0
				end=100
				image="units/elves-wood/sharpshooter-bow.png"
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/elves-wood/sharpshooter.png"
			[/frame]
		[/animation]
	[/attack]
	{DEFENSE_ANIM_FILTERED "units/elves-wood/sharpshooter-defend.png" "units/elves-wood/sharpshooter.png" {SOUND_LIST:ELF_HIT} range=melee }
	{DEFENSE_ANIM_FILTERED "units/elves-wood/sharpshooter-bow-defend.png" "units/elves-wood/sharpshooter.png" {SOUND_LIST:ELF_HIT} range=ranged }
	[female]
		name= _ "female^Elvish Sharpshooter"
		gender=female
		image="units/elves-wood/sharpshooter+female.png"
		die_sound={SOUND_LIST:ELF_FEMALE_HIT}
		{DEFENSE_ANIM_FILTERED "units/elves-wood/sharpshooter+female-defend.png" "units/elves-wood/sharpshooter+female.png" {SOUND_LIST:ELF_FEMALE_HIT} range=melee}
		{DEFENSE_ANIM_FILTERED "units/elves-wood/sharpshooter+female-bow-defend.png" "units/elves-wood/sharpshooter+female.png" {SOUND_LIST:ELF_FEMALE_HIT} range=ranged}
#		[death]
#			[frame]
#				image="units/elves-wood/sharpshooter-die1.png"
#			[/frame]
#			[frame]
#				image="units/elves-wood/sharpshooter-die2.png"
#			[/frame]
#			[frame]
#				image="units/elves-wood/sharpshooter-die3.png"
#			[/frame]
#			[frame]
#				image="units/elves-wood/sharpshooter-die4.png"
#			[/frame]
#		[/death]
		[attack]
			[animation]
				[frame]
					image="units/elves-wood/sharpshooter+female.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-melee-2.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female.png"
				[/frame]
			[/animation]
			[animation]
				[frame]
					image="units/elves-wood/sharpshooter+female.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-melee-2.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female.png"
				[/frame]
			[/animation]
		[/attack]
		[attack]
			[animation]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow-attack1.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow-attack2.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow-attack3.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow-attack4.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female.png"
				[/frame]
			[/animation]
			[animation]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow-attack1.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow-attack2.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow-attack3.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow-attack4.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female-bow.png"
				[/frame]
				[frame]
					image="units/elves-wood/sharpshooter+female.png"
				[/frame]
			[/animation]
		[/attack]
	[/female]
[/unit]
