[unit]
	id=Elvish Marksman
	name= _ "Elvish Marksman"
	race=elf
	gender=male,female
	image="units/elves-wood/marksman.png"
	image_long="units/elves-wood/marksman-bow.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=37
	movement_type=woodland
	movement=6
	experience=80
	level=2
	alignment=neutral
	advanceto=Elvish Sharpshooter
	undead_variation=archer
	cost=41
	usage=archer
	unit_description= _ "One of the things which contributes to their skill with the bow is the unusually clear vision of elves. An elf practiced at archery can hit targets that a man couldn't even see, even at night, and can nock a second arrow almost as soon as the first is let fly.

This prodigious skill does come with one cost, that being a lack of practice with the sword.

Special Notes:"+{SPECIAL_NOTES_MARKSMAN}
	die_sound={SOUND_LIST:ELF_HIT}
	[death]
		[frame]
			begin=0
			end=160
			image="units/elves-wood/marksman-die-1.png"
		[/frame]
		[frame]
			begin=160
			end=400
			image="units/elves-wood/marksman-die-2.png"
		[/frame]
		[frame]
			begin=400
			end=580
			image="units/elves-wood/marksman-die-3.png"
		[/frame]
		[frame]
			begin=580
			end=780
			image="units/elves-wood/marksman-die-4.png"
		[/frame]
		[frame]
			begin=780
			end=1000
			image="units/elves-wood/marksman-die-5.png"
		[/frame]
	[/death]
	[attack]
		name=sword
		icon=attacks/sword-elven.png
		type=blade
		range=melee
		damage=6
		number=2
		[animation]
			hits=no
			[frame]
				begin=-200
				end=-175
				image="units/elves-wood/marksman.png"
			[/frame]
			[frame]
				begin=-175
				end=-100
				image="units/elves-wood/marksman-melee-1.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/elves-wood/marksman-melee-2.png"
				sound={SOUND_LIST:MISS}
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/elves-wood/marksman-melee-1.png"
			[/frame]
			[frame]
				begin=150
				end=175
				image="units/elves-wood/marksman.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[frame]
				begin=-200
				end=-175
				image="units/elves-wood/marksman.png"
			[/frame]
			[frame]
				begin=-175
				end=-100
				image="units/elves-wood/marksman-melee-1.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/elves-wood/marksman-melee-2.png"
				sound={SOUND_LIST:SWORD_SWISH}
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/elves-wood/marksman-melee-1.png"
			[/frame]
			[frame]
				begin=150
				end=175
				image="units/elves-wood/marksman.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=longbow
		icon=attacks/bow-elven-magic.png
		type=pierce
		[specials]
			{WEAPON_SPECIAL_MARKSMAN}
		[/specials]
		range=ranged
		damage=9
		number=4
		[animation]
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/missile-n.png"
				image_diagonal="projectiles/missile-ne.png"
			[/missile_frame]
			[frame]
				begin=-475
				end=-400
				image="units/elves-wood/marksman-bow.png"
			[/frame]
			[frame]
				begin=-400
				end=-325
				image="units/elves-wood/marksman-bow-attack1.png"
				sound=bow-miss.ogg
			[/frame]
			[frame]
				begin=-325
				end=-250
				image="units/elves-wood/marksman-bow-attack2.png"
			[/frame]
			[frame]
				begin=-250
				end=-150
				image="units/elves-wood/marksman-bow-attack3.png"
			[/frame]
			[frame]
				begin=-150
				end=0
				image="units/elves-wood/marksman-bow-attack4.png"
			[/frame]
			[frame]
				begin=0
				end=75
				image="units/elves-wood/marksman-bow.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=-475
				end=-400
				image="units/elves-wood/marksman-bow.png"
			[/frame]
			[frame]
				begin=-400
				end=-325
				image="units/elves-wood/marksman-bow-attack1.png"
				sound=bow.ogg
			[/frame]
			[frame]
				begin=-325
				end=-250
				image="units/elves-wood/marksman-bow-attack2.png"
			[/frame]
			[frame]
				begin=-250
				end=-150
				image="units/elves-wood/marksman-bow-attack3.png"
			[/frame]
			[frame]
				begin=-150
				end=0
				image="units/elves-wood/marksman-bow-attack4.png"
			[/frame]
			[frame]
				begin=0
				end=75
				image="units/elves-wood/marksman-bow.png"
			[/frame]
		[/animation]
	[/attack]
	{DEFENSE_ANIM_FILTERED "units/elves-wood/marksman-defend.png" "units/elves-wood/marksman.png" {SOUND_LIST:ELF_HIT} range=melee }
	{DEFENSE_ANIM_FILTERED "units/elves-wood/marksman-bow-defend.png" "units/elves-wood/marksman.png" {SOUND_LIST:ELF_HIT} range=ranged }
	[female]
		name= _ "female^Elvish Marksman"
		gender=female
		image="units/elves-wood/marksman+female.png"
		die_sound={SOUND_LIST:ELF_FEMALE_HIT}
		{DEFENSE_ANIM_FILTERED "units/elves-wood/marksman+female-defend.png" "units/elves-wood/marksman+female.png" {SOUND_LIST:ELF_FEMALE_HIT} range=melee}
		{DEFENSE_ANIM_FILTERED "units/elves-wood/marksman+female-bow-defend.png" "units/elves-wood/marksman+female.png" {SOUND_LIST:ELF_FEMALE_HIT} range=ranged}
		[death]
			[frame]
				image="units/elves-wood/marksman+female-die-1.png"
			[/frame]
			[frame]
				image="units/elves-wood/marksman+female-die-2.png"
			[/frame]
			[frame]
				image="units/elves-wood/marksman+female-die-3.png"
			[/frame]
			[frame]
				image="units/elves-wood/marksman-die-4.png"
			[/frame]
			[frame]
				image="units/elves-wood/marksman-die-5.png"
			[/frame]
		[/death]
		[attack]
			[animation]
				[frame]
					image="units/elves-wood/marksman+female.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-melee-2.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female.png"
				[/frame]
			[/animation]
			[animation]
				[frame]
					image="units/elves-wood/marksman+female.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-melee-2.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female.png"
				[/frame]
			[/animation]
		[/attack]
		[attack]
			[animation]
				[frame]
					image="units/elves-wood/marksman+female-bow.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow-attack1.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow-attack2.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow-attack3.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow-attack4.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow.png"
				[/frame]
			[/animation]
			[animation]
				[frame]
					image="units/elves-wood/marksman+female-bow.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow-attack1.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow-attack2.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow-attack3.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow-attack4.png"
				[/frame]
				[frame]
					image="units/elves-wood/marksman+female-bow.png"
				[/frame]
			[/animation]
		[/attack]
	[/female]
[/unit]
