[unit]
#textdomain wesnoth-tsg
	id=Junior Commander
	name= _ "Junior Commander"
	race=human
	image=deoran/junior-commander.png
	ellipse="misc/ellipse-leader"
	image_leading=deoran/junior-commander-defend.png
	profile=portraits/deoran.png
	hitpoints=32
	alignment=lawful
	cost=17
	movement_type=mounted
	movement=6
	level=1
	experience=34
	advanceto=Horseman Commander
	usage=fighter
	[abilities]
		{ABILITY_LEADERSHIP_LEVEL_1}
	[/abilities]
	unit_description= _ "Scarcely 17 or 18 years old, the sons of knights and lords were given mounts and swords and told to become leaders of men. Those whose mettle was strong enough for the task became the commanders of the armies of Wesnoth."
	die_sound=horse-die.ogg
	[attack]
		name=spear
		description= _"spear"
		type=pierce
		range=melee
		damage=4
		number=3
		[animation]
			[frame]
				begin=-225
				end=-200
				image=deoran/junior-commander.png
				sound=horse-canter.wav
			[/frame]
			[frame]
				begin=-200
				end=-100
				image=deoran/junior-commander-moving.png
			[/frame]
			[if]
				hits=no
				[frame]
					begin=-100
					end=100
					image=deoran/junior-commander-attack.png
					sound={SOUND_LIST:MISS}
				[/frame]
			[/if]
			[else]
				hits=yes
				[frame]
					begin=-100
					end=100
					image=deoran/junior-commander-attack.png
					sound=spear.wav
				[/frame]
			[/else]
			[frame]
				begin=100
				end=175
				image=deoran/junior-commander-moving.png
			[/frame]
			[frame]
				begin=175
				end=200
				image=deoran/junior-commander.png
			[/frame]
		[/animation]
	[/attack]
	[movement_anim]
		[frame]
			begin=0
			end=150
			image=deoran/junior-commander-moving.png
		[/frame]
	[/movement_anim]
	{DEFENSE_ANIM "deoran/junior-commander-defend.png" "deoran/junior-commander.png" {SOUND_LIST:HORSE_HIT} }
[/unit]
