[unit]
	id=Elvish Hero
	name= _ "Elvish Hero"
	race=elf
	image="units/elves-wood/hero.png"
	image_long="units/elves-wood/hero-bow.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=51
	movement_type=woodland
	movement=5
	{LESS_NIMBLE_ELF}
	experience=90
	level=2
	alignment=neutral
	advanceto=Elvish Champion
	cost=32
	usage=fighter
	unit_description= _ "A relatively small amount of experience will turn an elf from a competent fighter into a master of combat. Those who are honored as heroes are strong with both sword and bow, and their skill once acquired does not fade for lack of practice."
	die_sound={SOUND_LIST:ELF_HIT}
	[attack]
		name=sword
		icon=attacks/sword-elven.png
		type=blade
		range=melee
		damage=8
		number=4
		[animation]
			[frame]
				begin=-200
				end=-175
				image="units/elves-wood/hero.png"
			[/frame]
			[frame]
				begin=-175
				end=-110
				image="units/elves-wood/hero-melee-1.png"
			[/frame]
			[frame]
				begin=-110
				end=-75
				image="units/elves-wood/hero-melee-2.png"
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-75
					end=75
					image="units/elves-wood/hero-melee-3.png"
					sound={SOUND_LIST:SWORD_SWISH}
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-75
					end=75
					image="units/elves-wood/hero-melee-3.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/else]
			[frame]
				begin=75
				end=120
				image="units/elves-wood/hero-melee-4.png"
			[/frame]
			[frame]
				begin=120
				end=180
				image="units/elves-wood/hero-defend.png"
			[/frame]
			[frame]
				begin=180
				end=200
				image="units/elves-wood/hero.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=bow
		icon=attacks/bow-elven.png
		type=pierce
		range=ranged
		damage=6
		number=3
		[animation]
			[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/hero-bow.png"
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-380
					end=-305
					image="units/elves-wood/hero-bow-attack1.png"
					sound=bow.ogg
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-380
					end=-305
					image="units/elves-wood/hero-bow-attack1.png"
					sound=bow-miss.ogg
				[/frame]
			[/else]
			[frame]
				begin=-305
				end=-230
				image="units/elves-wood/hero-bow-attack2.png"
			[/frame]
			[frame]
				begin=-230
				end=-130
				image="units/elves-wood/hero-bow-attack3.png"
			[/frame]
			[frame]
				begin=-130
				end=0
				image="units/elves-wood/hero-bow-attack4.png"
			[/frame]
			[frame]
				begin=0
				end=65
				image="units/elves-wood/hero-bow.png"
			[/frame]
		[/animation]
	[/attack]
	{DEFENSE_ANIM_RANGE "units/elves-wood/hero-defend.png" "units/elves-wood/hero.png" {SOUND_LIST:ELF_HIT} melee }
	{DEFENSE_ANIM_RANGE "units/elves-wood/hero-bow-defend.png" "units/elves-wood/hero-bow.png" {SOUND_LIST:ELF_HIT} ranged }
[/unit]
