#define DESERT_HUNTER NUM COST HIDEORNOT
[unit]
#textdomain wesnoth-utbs
	id=Desert Hunter{NUM}
	hide_help={HIDEORNOT}
	name= _ "Desert Hunter"
	race=elf
	gender=male,female
	image=units/elves-desert/hunter.png
	hitpoints=30
	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=6
	experience=42
	level=1
	alignment=lawful
	advanceto=Desert Sentinel
	cost={COST}
	usage=mixed fighter
	unit_description= _ "Desert Hunters are trained to scour the sands for prey and enemies. They can quickly entangle others with their bolas and then finish them off with their swords."
	die_sound={SOUND_LIST:ELF_HIT}
	{DEFENSE_ANIM "units/elves-desert/hunter-defend.png" units/elves-desert/hunter.png {SOUND_LIST:ELF_HIT} }
	[attack]
		name=sword
		description= _"sword"
		type=blade
		range=melee
		damage=5
		number=4
		icon=attacks/sword-elven.png
		[animation]
		[if]
			hits=yes
			[frame]
				begin=-101
				end=100
				image=units/elves-desert/hunter-melee.png
				sound={SOUND_LIST:SWORD_SWISH}
			[/frame]
		[/if]
		[else]
			hits=no
			[frame]
				begin=-101
				end=100
				image=units/elves-desert/hunter-melee.png
				sound={SOUND_LIST:MISS}
			[/frame]
		[/else]
		[/animation]
	[/attack]
	[attack]
		name=bola
		description= _"bola"
		type=impact
		range=ranged
		damage=4
		number=2
		[specials]
			{WEAPON_SPECIAL_SLOW}
		[/specials]
		icon=attacks/bolas.png
		[animation]
			[missile_frame]
				begin=-150
				end=0
				image=projectiles/bola-n.png
				image_diagonal=projectiles/bola-ne.png
			[/missile_frame]
			[if]
				hits=yes
				[frame]
					begin=-300
					end=-200
					image=units/elves-desert/hunter-ranged-1.png
					sound=hatchet.wav
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-300
					end=-200
					image=units/elves-desert/hunter-ranged-1.png
					sound=hatchet-miss.wav
				[/frame]
			[/else]
			[frame]
				begin=-200
				end=-100
				image=units/elves-desert/hunter-ranged-2.png
			[/frame]
			{FRAME_ON_SLOW (
				[frame]
					begin=-100
					end=0
					image=units/elves-desert/hunter-ranged-3.png
					sound=slowed.wav
				[/frame]
			)}
		[/animation]
	[/attack]
	[female]
		name= _ "female^Desert Hunter"
		gender=female
		die_sound={SOUND_LIST:ELF_FEMALE_HIT}
		{DEFENSE_ANIM "units/elves-desert/hunter-defend.png" units/elves-desert/hunter.png {SOUND_LIST:ELF_FEMALE_HIT} }
	[/female]
[/unit]
#enddef

{DESERT_HUNTER "" 20 false}
{DESERT_HUNTER 2 21 true}
{DESERT_HUNTER 3 22 true}
{DESERT_HUNTER 4 23 true}
{DESERT_HUNTER 5 24 true}
{DESERT_HUNTER 6 25 true}
{DESERT_HUNTER 7 26 true}
{DESERT_HUNTER 8 27 true}
{DESERT_HUNTER 9 28 true}
{DESERT_HUNTER 10 29 true}
{DESERT_HUNTER 11 30 true}
