[unit]
#textdomain wesnoth-utbs
	id=Desert Horseman
	name= _ "Desert Horseman"
	race=elf
	image=newelves/desert-elvish-horse-archer.png
	{DEFENSE_ANIM "newelves/desert-elvish-horse-archer-defend.png" newelves/desert-elvish-horse-archer-moving.png {SOUND_LIST:HORSE_HIT} }
	[movement_anim]
		[frame]
			begin=0
			end=150
			image="newelves/desert-elvish-horse-archer-moving.png"
		[/frame]
	[/movement_anim]
	hitpoints=50
	movement_type=woodland
#desert elves move fast across the sands, but are not used to forests
	[movement_costs]
		sand=1
		forest=2
		tundra=4
	[/movement_costs]
#mostly like a foot Elf, but they
#are bad at defending in villages
	[defense]
		village=60
		sand=40
		forest=50
	[/defense]
#they are weak against piercing attacks
	[resistance]
		pierce=120
	[/resistance]
	movement=8
	experience=100
	level=2
	alignment=lawful
	advanceto=null
	{AMLA_TOUGH 3}
	cost=34
	[abilities]
		{ABILITY_SKIRMISHER}
	[/abilities]
	usage=scout
	unit_description= _ "Trading speed for heavier arms and armament, Elvish Horsemen delight in riding into danger instead of away from it. The open sands are much more suited towards mounted combat than their old forests were, and through the generations the Elves have greatly increased their equestrian skills.

Special Notes: The skirmish ability allows the Desert Horseman to ignore enemy units' zones of control and move easily around enemy formations."
	die_sound=horse-die.ogg
# this is a custom elf unit for this campaign
# to make up for their other weaker mounted units
	[attack]
		name=sword
		description= _"sword"
		type=blade
		range=melee
		damage=7
		number=5
		icon=attacks/sword-elven.png
		[animation]
		hits=no
			[frame]
				begin=-200
				end=-100
				image=newelves/desert-elvish-horse-archer-moving.png
				sound=horse-elf-canter.wav
			[/frame]
			[frame]
				begin=-100
				end=100
				image=newelves/desert-elvish-horse-archer-attack.png
				sound={SOUND_LIST:MISS}
			[/frame]
		[/animation]
		[animation]
		hits=yes
			[frame]
				begin=-200
				end=-100
				image=newelves/desert-elvish-horse-archer-moving.png
				sound=horse-elf-canter.wav
			[/frame]
			[frame]
				begin=-100
				end=100
				image=newelves/desert-elvish-horse-archer-attack.png
				sound={SOUND_LIST:SWORD_SWISH}
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=bow
		description= _"bow"
		type=pierce
		range=ranged
		damage=5
		number=3
		icon=attacks/bow-elven.png
		[animation]
			hits=no
			[missile_frame]
				begin=-100
				end=0
				image=projectiles/missile-n.png
				image_diagonal=projectiles/missile-ne.png
			[/missile_frame]
			[frame]
				begin=-300
				end=-150
				image=newelves/desert-elvish-horse-archer-ranged1.png
				sound=bow-miss.ogg
			[/frame]
			[frame]
				begin=-150
				end=-100
				image=newelves/desert-elvish-horse-archer-ranged2.png
			[/frame]
			[frame]
				begin=-100
				end=0
				image=newelves/desert-elvish-horse-archer-ranged2.png
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[missile_frame]
				begin=-100
				end=0
				image=projectiles/missile-n.png
				image_diagonal=projectiles/missile-ne.png
			[/missile_frame]
			[frame]
				begin=-300
				end=-150
				image=newelves/desert-elvish-horse-archer-ranged1.png
				sound=bow.ogg
			[/frame]
			[frame]
				begin=-150
				end=-100
				image=newelves/desert-elvish-horse-archer-ranged2.png
			[/frame]
			[frame]
				begin=-100
				end=0
				image=newelves/desert-elvish-horse-archer-ranged2.png
			[/frame]
		[/animation]
	[/attack]
[/unit]
