#textdomain wesnoth-httt
[unit]
	id=Elvish High Lord
	name= _ "Elvish High Lord"
	race=elf
	image="elvish-high-lord.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	profile=portraits/kalenz.png
	hitpoints=63
	movement_type=woodland
	movement=6
	experience=100
	level=3
	alignment=neutral
	advanceto=null
	{AMLA_TOUGH 3}
	cost=60
	usage=fighter
	unit_description= _ "The leaders of the elves do not fall sallow and frail with age. Rather, it is then that they grow to their true potential. Quiet and contemplative in times of peace, a High Lord in the full of his wrath is an awesome sight indeed."
	die_sound={SOUND_LIST:ELF_HIT}
	[defend]
		start_time=-151
		[attack_filter]
			range=melee
		[/attack_filter]
		[frame]
			duration=1
			image="elvish-high-lord.png"
		[/frame]
		[frame]
			duration=100
			image="elvish-high-lord-defend-1.png"
		[/frame]
		[if]
			hits=hit
			[frame]
				duration=100
				image="elvish-high-lord-defend-2.png"
				sound={SOUND_LIST:ELF_HIT}
			[/frame]
		[/if]
		[else]
			hits=miss,kill
			[frame]
				duration=100
				image="elvish-high-lord-defend-2.png"
			[/frame]
		[/else]
		[frame]
			duration=100
			image="elvish-high-lord-defend-1.png"
		[/frame]
		[frame]
			duration=1
			image="elvish-high-lord.png"
		[/frame]
	[/defend]
	{DEFENSE_ANIM_RANGE "elvish-high-lord-magic-defend.png" "elvish-high-lord-magic.png" {SOUND_LIST:ELF_HIT} ranged}
	[attack]
		name=sword
		description= _"sword"
		icon=attacks/sword-elven.png
		type=blade
		range=melee
		damage=10
		number=4
		[animation]
			[frame]
				begin=-200
				end=-175
				image="elvish-high-lord.png"
			[/frame]
			[if]
				hits=no
				[frame]
					begin=-175
					end=-75
					image="elvish-high-lord-attack-sword-1.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/if]
			[else]
				hits=yes
				[frame]
					begin=-175
					end=-75
					image="elvish-high-lord-attack-sword-1.png"
					sound={SOUND_LIST:SWORD_SWISH}
				[/frame]
			[/else]
			[frame]
				begin=-75
				end=100
				image="elvish-high-lord-attack-sword-2.png"
			[/frame]
			[frame]
				begin=100
				end=200
				image="elvish-high-lord.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=faerie fire
		description= _"faerie fire"
		type=cold
		icon=attacks/faerie-fire.png
		[specials]
			{WEAPON_SPECIAL_MAGICAL}
		[/specials]
		range=ranged
		damage=8
		number=5
		[animation]
			hits=no
			{MISSILE_FRAME_FAERIE_FIRE}

			[frame]
				begin=-450
				end=-375
				image="elvish-high-lord-magic.png"
				sound=magic-faeriefire-miss.ogg

				halo=halo/elven/faerie-fire-halo1.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-375
				end=-300
				image="elvish-high-lord-magic.png"
				halo=halo/elven/faerie-fire-halo2.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-300
				end=-225
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo3.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-225
				end=-150
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo4.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-150
				end=-75
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo5.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-75
				end=0
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo6.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-0
				end=75
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo7.png
				halo_x,halo_y=-19,-14
			[/frame]
		[/animation]
		[animation]
			hits=yes
			{MISSILE_FRAME_FAERIE_FIRE}

			[frame]
				begin=-450
				end=-375
				image="elvish-high-lord-magic.png"
				sound=magic-faeriefire.ogg

				halo=halo/elven/faerie-fire-halo1.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-375
				end=-300
				image="elvish-high-lord-magic.png"
				halo=halo/elven/faerie-fire-halo2.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-300
				end=-225
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo3.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-225
				end=-150
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo4.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-150
				end=-75
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo5.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-75
				end=0
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo6.png
				halo_x,halo_y=-19,-14
			[/frame]
			[frame]
				begin=-0
				end=75
				image="elvish-high-lord-magic-1.png"
				halo=halo/elven/faerie-fire-halo7.png
				halo_x,halo_y=-19,-14
			[/frame]
		[/animation]
	[/attack]
[/unit]
