[unit]
	id=Noble Commander
	name= _ "Noble Commander"
	race=human
	gender=male
	image="noble-commander.png"
	{DEFENSE_ANIM_FILTERED "noble-commander-defend.png" "noble-commander.png" {SOUND_LIST:HUMAN_HIT} range=melee}
	image_long="noble-commander-bow.png"
	{DEFENSE_ANIM_FILTERED "noble-commander-bow.png" "noble-commander.png" {SOUND_LIST:HUMAN_HIT} range=ranged}
	image_leading="noble-commander-leading.png"
#ifdef CAMPAIGN_THE_RISE_OF_WESNOTH
	profile=portraits/haldric.png
#endif
	hitpoints=48
	[abilities]
		{ABILITY_LEADERSHIP_LEVEL_2}
	[/abilities]
	movement_type=smallfoot
	movement=6
	experience=90
	level=2
	alignment=lawful
	advanceto=Noble Lord
	cost=38
	usage=mixed fighter
	unit_description= _ "The rank of a noble Commander is held by those who lead battle groups into combat. Possessing leadership skills, they give lower-level units in adjacent hexes improved performance in combat. Commanders are best skilled with the sword, although they also carry a bow to use when necessary. If the Commander is lost, so is the battle."
	die_sound={SOUND_LIST:HUMAN_DIE}
	[attack]
		name=sword
		type=blade
		range=melee
		damage=8
		number=4
		icon=attacks/sword-human.png
		[animation]
			hits=no
			[frame]
				begin=-200
				end=-100
				image="noble-commander.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="noble-commander-attack-sword.png"
				sound={SOUND_LIST:MISS}
			[/frame]
			[frame]
				begin=100
				end=175
				image="noble-commander.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[frame]
				begin=-200
				end=-100
				image="noble-commander.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="noble-commander-attack-sword.png"
				sound={SOUND_LIST:SWORD_SWISH}
			[/frame]
			[frame]
				begin=100
				end=175
				image="noble-commander.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=bow
		type=pierce
		range=ranged
		damage=6
		number=3
		icon=attacks/bow.png
		[animation]
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/missile-n.png"
				image_diagonal="projectiles/missile-ne.png"
			[/missile_frame]
			[frame]
				begin=-500
				end=-450
				image="noble-commander-bow.png"
			[/frame]
			[frame]
				begin=-450
				end=-300
				image="noble-commander-attack-ranged1.png"
				sound=bow-miss.ogg
			[/frame]
			[frame]
				begin=-300
				end=-200
				image="noble-commander-attack-ranged2.png"
			[/frame]
			[frame]
				begin=-200
				end=-100
				image="noble-commander-attack-ranged3.png"
			[/frame]
			[frame]
				begin=-100
				end=0
				image="noble-commander-attack-ranged3.png"
			[/frame]
			[frame]
				begin=0
				end=100
				image="noble-commander-bow.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/missile-n.png"
				image_diagonal="projectiles/missile-ne.png"
			[/missile_frame]
			[frame]
				begin=-500
				end=-450
				image="noble-commander-bow.png"
			[/frame]
			[frame]
				begin=-450
				end=-300
				image="noble-commander-attack-ranged1.png"
				sound=bow.ogg
			[/frame]
			[frame]
				begin=-300
				end=-200
				image="noble-commander-attack-ranged2.png"
			[/frame]
			[frame]
				begin=-200
				end=-100
				image="noble-commander-attack-ranged3.png"
			[/frame]
			[frame]
				begin=-100
				end=0
				image="noble-commander-attack-ranged3.png"
			[/frame]
			[frame]
				begin=0
				end=100
				image="noble-commander-bow.png"
			[/frame]
		[/animation]
	[/attack]
[/unit]
