[unit]
	id=Fencer
	name= _ "Fencer"
	race=human
	image="units/human-loyalists/fencer.png"
	ellipse="misc/ellipse"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=28
	movement_type=elusivefoot
	movement=6
	experience=42
	level=1
	alignment=lawful
	advanceto=Duelist
	cost=16
	usage=fighter
	unit_description= _ "Fencers belong to a school of thought that considers the armor most soldiers wear in combat to be their own worst enemy. While armor can only soften a blow, evading it leaves the defender completely unharmed. Being able to reliably dodge any offensive move is a luxury only afforded to the fit of body, and then only to those who endure rigorous training.

Outfitted with only a dagger and sabre, fencers are light on their feet and useful in many situations where their armor-bound peers are at a disadvantage. They take relish in dancing circles around troops like heavy infantry, mocking the price in reduced mobility paid for full armor.

Special Notes:"+{SPECIAL_NOTES_SKIRMISHER}
	die_sound={SOUND_LIST:HUMAN_DIE}
	[abilities]
		{ABILITY_SKIRMISHER}
	[/abilities]
	[defend]
		hits=miss
		[frame]
			begin=-126
			end=-125
			image="units/human-loyalists/fencer.png"
		[/frame]
		[frame]
			begin=-125
			end=-42
			image="units/human-loyalists/fencer-defend-1-1.png"
		[/frame]
		[frame]
			begin=-42
			end=41
			image="units/human-loyalists/fencer-defend-1-2.png"
		[/frame]
		[frame]
			begin=41
			end=125
			image="units/human-loyalists/fencer-defend-1-1.png"
		[/frame]
		[frame]
			begin=125
			end=126
			image="units/human-loyalists/fencer-defend-1-1.png"
		[/frame]
	[/defend]
	[defend]
		hits=hit
		[frame]
			begin=-126
			end=-125
			image="units/human-loyalists/fencer.png"
		[/frame]
		[frame]
			begin=-125
			end=-25
			image="units/human-loyalists/fencer-defend.png"
		[/frame]
		[frame]
			begin=-25
			end=125
			image="units/human-loyalists/fencer-defend.png"
			sound={SOUND_LIST:HUMAN_HIT}
		[/frame]
		[frame]
			begin=125
			end=126
			image="units/human-loyalists/fencer.png"
		[/frame]
	[/defend]
	[defend]
		hits=kill
		[frame]
			begin=-126
			end=-125
			image="units/human-loyalists/fencer.png"
		[/frame]
		[frame]
			begin=-125
			end=125
			image="units/human-loyalists/fencer-defend.png"
		[/frame]
		[frame]
			begin=125
			end=126
			image="units/human-loyalists/fencer.png"
		[/frame]
	[/defend]
	[death]
		[frame]
			begin=0
			end=100
			image="units/human-loyalists/fencer-die1.png"
		[/frame]
		[frame]
			begin=100
			end=200
			image="units/human-loyalists/fencer-die2.png"
		[/frame]
		[frame]
			begin=200
			end=300
			image="units/human-loyalists/fencer-die3.png"
		[/frame]
		[frame]
			begin=300
			end=400
			image="units/human-loyalists/fencer-die4.png"
		[/frame]
		[frame]
			begin=400
			end=500
			image="units/human-loyalists/fencer-die5.png"
		[/frame]
	[/death]
	[attack]
		name=sabre
		icon=attacks/sabre-human.png
		type=blade
		damage=4
		number=4
		range=melee
		[animation]
			[frame]
				begin=-250
				end=-200
				image="units/human-loyalists/fencer.png"
			[/frame]
			[frame]
				begin=-200
				end=-150
				image="units/human-loyalists/fencer-defend-1-2.png"
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-150
					end=50
					image="units/human-loyalists/fencer-attack.png"
					sound={SOUND_LIST:SWORD_SWISH}
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-150
					end=50
					image="units/human-loyalists/fencer-attack.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/else]
			[frame]
				begin=50
				end=100
				image="units/human-loyalists/fencer-defend-1-2.png"
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/human-loyalists/fencer.png"
			[/frame]
		[/animation]
	[/attack]
	[idle_anim]
		{STANDARD_IDLE_FILTER}
		start_time=0
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-1.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-2.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-3.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-4.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-5.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-6.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-7.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-6.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-5.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-4.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-3.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-2.png"
		[/frame]
		[frame]
			duration=100
			image="units/human-loyalists/fencer-idle-1.png"
		[/frame]
	[/idle_anim]
[/unit]
