[unit]
#textdomain wesnoth-utbs
	id=Kaleh Fighter
	name= _ "Desert Fighter"
	race=elf
	image=units/elves-desert/kaleh.png
	image_long=units/elves-desert/kaleh-ranged.png
	profile=portraits/kaleh.png
	hitpoints=32
	movement_type=woodland
#desert elves move fast across the sands, but are not used to forests
#they are also a bit faster in caves
	[movement_costs]
		sand=1
		forest=2
		cave=2
		tundra=3
	[/movement_costs]
	[defense]
		sand=40
		forest=50
	[/defense]
	movement=5
	experience=38
	level=1
	alignment=lawful
	advanceto=Kaleh Captain,Kaleh Hero
	cost=14
	usage=fighter
	unit_description= _ "Desert Fighters make up the bulk of the Elven military in Quenoth. They are trained in both sword and bow, though like most of their kin, they prefer swordplay to archery. These Elves are deft of foot, and fight best in the open sands."
	hide_help=true
	die_sound={SOUND_LIST:ELF_HIT}
	{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-defend.png" units/elves-desert/kaleh.png {SOUND_LIST:ELF_HIT} melee}
	{DEFENSE_ANIM_RANGE "units/elves-desert/kaleh-ranged-defend.png" units/elves-desert/kaleh-ranged.png {SOUND_LIST:ELF_HIT} ranged}
# Melee damage increased by 1, ranged damage decreased by 1
	[attack]
		name=sword
		description= _"sword"
		type=blade
		range=melee
		damage=6
		number=4
		icon=attacks/sword-elven.png
		[animation]
			[frame]
				begin=-200
				end=-100
				image=units/elves-desert/kaleh-melee-1.png
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-100
					end=100
					image=units/elves-desert/kaleh-melee-2.png
					sound={SOUND_LIST:SWORD_SWISH}
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-100
					end=100
					image=units/elves-desert/kaleh-melee-2.png
					sound={SOUND_LIST:MISS}
				[/frame]
			[/else]
			[frame]
				begin=100
				end=200
				image=units/elves-desert/kaleh.png
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=bow
		description= _"bow"
		type=pierce
		range=ranged
		damage=2
		number=3
		icon=attacks/bow-elven.png
		[animation]
			[missile_frame]
				begin=-100
				end=0
				image=projectiles/missile-n.png
				image_diagonal=projectiles/missile-ne.png
			[/missile_frame]
			[frame]
				begin=-445
				end=-380
				image="units/elves-desert/kaleh-ranged.png"
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-380
					end=-305
					image="units/elves-desert/kaleh-ranged-1.png"
					sound=bow.ogg
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-380
					end=-305
					image="units/elves-desert/kaleh-ranged-1.png"
					sound=bow-miss.ogg
				[/frame]
			[/else]
			[frame]
				begin=-305
				end=-230
				image="units/elves-desert/kaleh-ranged-2.png"
			[/frame]
			[frame]
				begin=-230
				end=-130
				image="units/elves-desert/kaleh-ranged-3.png"
			[/frame]
			[frame]
				begin=-130
				end=-100
				image="units/elves-desert/kaleh-ranged-4.png"
			[/frame]
			[frame]
				begin=-100
				end=0
				image="units/elves-desert/kaleh-ranged-4.png"
			[/frame]
			[frame]
				begin=0
				end=65
				image="units/elves-desert/kaleh-ranged.png"
			[/frame]
		[/animation]
	[/attack]
[/unit]
