[unit]
	id=Master at Arms
	name= _ "Master at Arms"
	race=human
	image="units/human-loyalists/master-at-arms.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=57
	movement_type=elusivefoot
	movement=7
	experience=100
	level=3
	alignment=lawful
	advanceto=null
	{AMLA_TOUGH 3}
	cost=44
	usage=mixed fighter
	unit_description= _ "Master fencers have an envied place in life. Though the journey to their station was a dangerous way of life, they have reached the time wherein they reap its rewards. Famed for their skill and dashing manner, these gentlemen have the bearing of natural aristocrats, and are followed by the eyes of many a high born lady.

They usually have the luxury of choosing their appointments, and are free to roam the land should they so choose. Often, they will be found as the captains of a castle guard, or as the master of a military academy, positions in which their flamboyant nature is not only accepted, but is perhaps even useful.

Special Notes:"+{SPECIAL_NOTES_SKIRMISHER}
	{DEFENSE_ANIM "units/human-loyalists/master-at-arms-defend-2.png" "units/human-loyalists/master-at-arms-defend-1.png" {SOUND_LIST:HUMAN_HIT} }
	die_sound={SOUND_LIST:HUMAN_DIE}
	[abilities]
		{ABILITY_SKIRMISHER}
	[/abilities]
	[attack]
		name=sabre
		icon=attacks/sabre-human.png
		type=blade
		range=melee
		damage=7
		number=5
		[animation]
			[frame]
				begin=-200
				end=-175
				image="units/human-loyalists/master-at-arms.png"
			[/frame]
			[frame]
				begin=-175
				end=-125
				image="units/human-loyalists/master-at-arms-melee-1-1.png"
			[/frame]
			[frame]
				begin=-125
				end=-75
				image="units/human-loyalists/master-at-arms-melee-1-2.png"
			[/frame]
			[if]
				hits=no
				[frame]
					begin=-75
					end=75
					image="units/human-loyalists/master-at-arms-melee-1-3.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/if]
			[else]
				hits=yes
				[frame]
					begin=-75
					end=75
					image="units/human-loyalists/master-at-arms-melee-1-3.png"
					sound={SOUND_LIST:SWORD_SWISH}
				[/frame]
			[/else]
			[frame]
				begin=75
				end=125
				image="units/human-loyalists/master-at-arms-recover-1.png"
			[/frame]
			[frame]
				begin=125
				end=175
				image="units/human-loyalists/master-at-arms-recover-2.png"
			[/frame]
			[frame]
				begin=175
				end=200
				image="units/human-loyalists/master-at-arms.png"
			[/frame]
		[/animation]
		[animation]
			[frame]
				begin=-200
				end=-175
				image="units/human-loyalists/master-at-arms.png"
			[/frame]
			[frame]
				begin=-175
				end=-125
				image="units/human-loyalists/master-at-arms-melee-2-1.png"
			[/frame]
			[frame]
				begin=-125
				end=-75
				image="units/human-loyalists/master-at-arms-melee-2-2.png"
			[/frame]
			[if]
				hits=no
				[frame]
					begin=-75
					end=75
					image="units/human-loyalists/master-at-arms-melee-2-3.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/if]
			[else]
				hits=yes
				[frame]
					begin=-75
					end=75
					image="units/human-loyalists/master-at-arms-melee-1-3.png"
					sound={SOUND_LIST:SWORD_SWISH}
				[/frame]
			[/else]
			[frame]
				begin=75
				end=125
				image="units/human-loyalists/master-at-arms-recover-1.png"
			[/frame]
			[frame]
				begin=125
				end=175
				image="units/human-loyalists/master-at-arms-recover-2.png"
			[/frame]
			[frame]
				begin=175
				end=200
				image="units/human-loyalists/master-at-arms.png"
			[/frame]
		[/animation]
		[animation]
			[frame]
				begin=-200
				end=-175
				image="units/human-loyalists/master-at-arms.png"
			[/frame]
			[frame]
				begin=-175
				end=-125
				image="units/human-loyalists/master-at-arms-melee-2-1.png"
			[/frame]
			[frame]
				begin=-125
				end=-75
				image="units/human-loyalists/master-at-arms-melee-2-2.png"
			[/frame]
			[if]
				hits=no
				[frame]
					begin=-75
					end=75
					image="units/human-loyalists/master-at-arms-melee-3-3.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/if]
			[else]
				hits=yes
				[frame]
					begin=-75
					end=75
					image="units/human-loyalists/master-at-arms-melee-1-3.png"
					sound={SOUND_LIST:SWORD_SWISH}
				[/frame]
			[/else]
			[frame]
				begin=75
				end=125
				image="units/human-loyalists/master-at-arms-recover-1.png"
			[/frame]
			[frame]
				begin=125
				end=175
				image="units/human-loyalists/master-at-arms-recover-2.png"
			[/frame]
			[frame]
				begin=175
				end=200
				image="units/human-loyalists/master-at-arms.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=crossbow
		icon=attacks/crossbow-human.png
		type=pierce
		range=ranged
		damage=20
		number=1
		[animation]
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/missile-n.png"
				image_diagonal="projectiles/missile-ne.png"
			[/missile_frame]
			[frame]
				begin=-600
				end=-500
				image="units/human-loyalists/master-at-arms-crossbow-1.png"
			[/frame]
			[frame]
				begin=-500
				end=-400
				image="units/human-loyalists/master-at-arms-crossbow-2.png"
			[/frame]
			{HIT_MISS_SOUNDS crossbow.ogg crossbow-miss.ogg (
				[frame]
					begin=-400
					end=-300
					image="units/human-loyalists/master-at-arms-crossbow-3.png"
				[/frame]
			)}
			[frame]
				begin=-300
				end=-100
				image="units/human-loyalists/master-at-arms-crossbow-4.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/human-loyalists/master-at-arms-crossbow-5.png"
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/human-loyalists/master-at-arms-crossbow-6.png"
			[/frame]
			[frame]
				begin=200
				end=300
				image="units/human-loyalists/master-at-arms-crossbow-3.png"
			[/frame]
			[frame]
				begin=300
				end=400
				image="units/human-loyalists/master-at-arms-crossbow-2.png"
			[/frame]
			[frame]
				begin=400
				end=500
				image="units/human-loyalists/master-at-arms-crossbow-1.png"
			[/frame]
		[/animation]
	[/attack]
[/unit]
