[unit]
	id=Merman Spearman
	name= _ "Merman Spearman"
	race=merman
	image="units/merfolk/spearman.png"
	profile=portraits/Alex_Jarocha-Ernst/merman-hunter.png
	hitpoints=40
	movement_type=swimmer
	movement=6
	experience=85
	level=2
	alignment=lawful
	advanceto=Merman Javelineer
	undead_variation=swimmer
	cost=27
	usage=mixed fighter
	unit_description= _ "Archery is little favored by the mermen, for whom javelinry serves the same function. Though thrown javelins are of little use under the water, they are extremely useful at the surface, where their weight allows them to plunge several feet below the water while retaining enough momentum to remain effective. They are also useful in melee, even deep under the surface, which is something that certainly cannot be said of arrows."
	die_sound=mermen-die.ogg
	{DEFENSE_ANIM "units/merfolk/spearman-defend.png" "units/merfolk/spearman.png" mermen-hit.wav }
	[attack]
		name=spear
		type=pierce
		range=melee
		damage=6
		number=2
		[animation]
			hits=no
			direction=se,sw
			[frame]
				begin=-250
				end=-150
				image="units/merfolk/spearman.png"
			[/frame]
			[frame]
				begin=-150
				end=100
				image="units/merfolk/spearman-attack-se.png"
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/merfolk/spearman.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			direction=se,sw
			[frame]
				begin=-250
				end=-150
				image="units/merfolk/spearman.png"
			[/frame]
			[frame]
				begin=-150
				end=100
				image="units/merfolk/spearman-attack-se.png"
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/merfolk/spearman.png"
			[/frame]
		[/animation]
		[animation]
			hits=no
			direction=ne,nw
			[frame]
				begin=-250
				end=-150
				image="units/merfolk/spearman.png"
			[/frame]
			[frame]
				begin=-150
				end=100
				image="units/merfolk/spearman-attack-ne.png"
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/merfolk/spearman.png"
			[/frame]
		[/animation]
		[animation]
			hits=yes
			direction=ne,nw
			[frame]
				begin=-250
				end=-150
				image="units/merfolk/spearman.png"
			[/frame]
			[frame]
				begin=-150
				end=100
				image="units/merfolk/spearman-attack-ne.png"
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/merfolk/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=n
			hits=no
			[frame]
				begin=-250
				end=-200
				image="units/merfolk/spearman.png"
			[/frame]
			[frame]
				begin=-200
				end=-100
				image="units/merfolk/spearman-attack-ne.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/merfolk/spearman-attack-n.png"
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/merfolk/spearman-attack-ne.png"
			[/frame]
			[frame]
				begin=150
				end=200
				image="units/merfolk/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=n
			hits=yes
			[frame]
				begin=-250
				end=-200
				image="units/merfolk/spearman.png"
			[/frame]
			[frame]
				begin=-200
				end=-100
				image="units/merfolk/spearman-attack-ne.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/merfolk/spearman-attack-n.png"
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/merfolk/spearman-attack-ne.png"
			[/frame]
			[frame]
				begin=150
				end=200
				image="units/merfolk/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=s
			hits=no
			[frame]
				begin=-250
				end=-200
				image="units/merfolk/spearman.png"
			[/frame]
			[frame]
				begin=-200
				end=-100
				image="units/merfolk/spearman-attack-se.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/merfolk/spearman-attack-s.png"
				sound=spear-miss.ogg
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/merfolk/spearman-attack-se.png"
			[/frame]
			[frame]
				begin=150
				end=200
				image="units/merfolk/spearman.png"
			[/frame]
		[/animation]
		[animation]
			direction=s
			hits=yes
			[frame]
				begin=-250
				end=-200
				image="units/merfolk/spearman.png"
			[/frame]
			[frame]
				begin=-200
				end=-100
				image="units/merfolk/spearman-attack-se.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/merfolk/spearman-attack-s.png"
				sound=spear.ogg
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/merfolk/spearman-attack-se.png"
			[/frame]
			[frame]
				begin=150
				end=200
				image="units/merfolk/spearman.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=spear
		type=pierce
		range=ranged
		damage=6
		number=4
		[animation]
			hits=no
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-200
				end=-100
				image="units/merfolk/spearman-attack-se.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/merfolk/spearman-attack-ranged.png"
				sound={SOUND_LIST:MISS}
			[/frame]
		[/animation]
		[animation]
			hits=yes
			[missile_frame]
				begin=-150
				end=0
				image="projectiles/spear-n.png"
				image_diagonal="projectiles/spear-ne.png"
			[/missile_frame]
			[frame]
				begin=-200
				end=-100
				image="units/merfolk/spearman-attack-se.png"
			[/frame]
			[frame]
				begin=-100
				end=100
				image="units/merfolk/spearman-attack-ranged.png"
				sound=spear.wav
			[/frame]
		[/animation]
	[/attack]
[/unit]
