[unit]
	id=Elvish Avenger
	name= _ "Elvish Avenger"
	race=elf
	gender=male,female
	image="units/elves-wood/avenger.png"
	image_long="units/elves-wood/avenger-bow.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=55
	movement_type=woodland
	movement=6
	experience=100
	level=3
	alignment=neutral
	advanceto=null
	{AMLA_TOUGH 3}
	undead_variation=archer
	cost=60
	usage=mixed fighter
	unit_description= _ "The curious name of the elvish 'Avengers' comes from a tactic often employed by these master rangers. The enemy is allowed to break through a feint defense, and when the vulnerable troops behind the front line follow, these archers break cover and attack, cutting the supply lines and surrounding the enemy in one fell stroke.

This has, at times, been interpreted as a form of vengeance for their brethren lost earlier in the battle. Although not so base in design, it is not at all inaccurate.

Special Notes:"+{SPECIAL_NOTES_AMBUSH}
	die_sound={SOUND_LIST:ELF_HIT}
	[movement_costs]
		shallow_water=2
		mountains=2
	[/movement_costs]
	[defense]
		shallow_water=70
		swamp_water=60
		sand=60
	[/defense]
	[abilities]
		{ABILITY_AMBUSH}
	[/abilities]
#	[death]
#		[frame]
#			begin=0
#			end=100
#			image="units/elves-wood/avenger-die1.png"
#		[/frame]
#		[frame]
#			begin=100
#			end=200
#			image="units/elves-wood/avenger-die2.png"
#		[/frame]
#		[frame]
#			begin=200
#			end=300
#			image="units/elves-wood/avenger-die3.png"
#		[/frame]
#		[frame]
#			begin=300
#			end=400
#			image="units/elves-wood/avenger-die4.png"
#		[/frame]
#	[/death]
	[attack]
		name=sword
		icon=attacks/sword-elven.png
		type=blade
		range=melee
		damage=8
		number=4
		[animation]
			hits=no
			[frame]
				begin=-200
				end=-175
				image="units/elves-wood/avenger.png"
			[/frame]
			[frame]
				begin=-175
				end=-100
				image="units/elves-wood/avenger-melee-1.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/elves-wood/avenger-melee-2.png"
				sound={SOUND_LIST:MISS}
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/elves-wood/avenger-melee-1.png"
			[/frame]
			[frame]
				begin=150
				end=175
				image="units/elves-wood/avenger.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[frame]
				begin=-200
				end=-175
				image="units/elves-wood/avenger.png"
			[/frame]
			[frame]
				begin=-175
				end=-100
				image="units/elves-wood/avenger-melee-1.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/elves-wood/avenger-melee-2.png"
				sound={SOUND_LIST:SWORD_SWISH}
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/elves-wood/avenger-melee-1.png"
			[/frame]
			[frame]
				begin=150
				end=175
				image="units/elves-wood/avenger.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=bow
		icon=attacks/bow-elven.png
		type=pierce
		range=ranged
		damage=10
		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=-445
				end=-380
				image="units/elves-wood/avenger-bow.png"
			[/frame]
			[frame]
				begin=-380
				end=-305
				image="units/elves-wood/avenger-bow-attack1.png"
				sound=bow-miss.ogg
			[/frame]
			[frame]
				begin=-305
				end=-230
				image="units/elves-wood/avenger-bow-attack2.png"
			[/frame]
			[frame]
				begin=-230
				end=-130
				image="units/elves-wood/avenger-bow-attack3.png"
			[/frame]
			[frame]
				begin=-130
				end=0
				image="units/elves-wood/avenger-bow-attack4.png"
			[/frame]
			[frame]
				begin=0
				end=65
				image="units/elves-wood/avenger-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=-445
				end=-380
				image="units/elves-wood/avenger-bow.png"
			[/frame]
			[frame]
				begin=-380
				end=-305
				image="units/elves-wood/avenger-bow-attack1.png"
				sound=bow.ogg
			[/frame]
			[frame]
				begin=-305
				end=-230
				image="units/elves-wood/avenger-bow-attack2.png"
			[/frame]
			[frame]
				begin=-230
				end=-130
				image="units/elves-wood/avenger-bow-attack3.png"
			[/frame]
			[frame]
				begin=-130
				end=0
				image="units/elves-wood/avenger-bow-attack4.png"
			[/frame]
			[frame]
				begin=0
				end=65
				image="units/elves-wood/avenger-bow.png"
			[/frame]
		[/animation]
	[/attack]
	{DEFENSE_ANIM_FILTERED "units/elves-wood/avenger-defend.png" "units/elves-wood/avenger.png" {SOUND_LIST:ELF_HIT} range=melee}
	{DEFENSE_ANIM_FILTERED "units/elves-wood/avenger-bow-defend.png" "units/elves-wood/avenger.png" {SOUND_LIST:ELF_HIT} range=ranged}
	[female]
		name= _ "female^Elvish Avenger"
		gender=female
		image="units/elves-wood/avenger+female.png"
		die_sound={SOUND_LIST:ELF_FEMALE_HIT}
		{DEFENSE_ANIM_FILTERED "units/elves-wood/avenger+female-defend.png" "units/elves-wood/avenger+female.png" {SOUND_LIST:ELF_FEMALE_HIT} range=melee}
		{DEFENSE_ANIM_FILTERED "units/elves-wood/avenger+female-bow-defend.png" "units/elves-wood/avenger+female.png" {SOUND_LIST:ELF_FEMALE_HIT} range=ranged}
#		[death]
#			[frame]
#				image="units/elves-wood/avenger-die1.png"
#			[/frame]
#			[frame]
#				image="units/elves-wood/avenger-die2.png"
#			[/frame]
#			[frame]
#				image="units/elves-wood/avenger-die3.png"
#			[/frame]
#			[frame]
#				image="units/elves-wood/avenger-die4.png"
#			[/frame]
#		[/death]
		[attack]
			[animation]
				[frame]
					image="units/elves-wood/avenger+female.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-melee-2.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female.png"
				[/frame]
			[/animation]
			[animation]
				[frame]
					image="units/elves-wood/avenger+female.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-melee-2.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-melee-1.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female.png"
				[/frame]
			[/animation]
		[/attack]
		[attack]
			[animation]
				[frame]
					image="units/elves-wood/avenger+female-bow.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow-attack1.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow-attack2.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow-attack3.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow-attack4.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow.png"
				[/frame]
			[/animation]
			[animation]
				[frame]
					image="units/elves-wood/avenger+female-bow.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow-attack1.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow-attack2.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow-attack3.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow-attack4.png"
				[/frame]
				[frame]
					image="units/elves-wood/avenger+female-bow.png"
				[/frame]
			[/animation]
		[/attack]
	[/female]
[/unit]
