[unit]
	id=Drake Glider
	name= _ "Drake Glider"
	race=drake
	image="units/drakes/glider.png"
	ellipse="misc/ellipse"
	profile="portraits/Alex_Jarocha-Ernst/drake-glider.png"
	hitpoints=32
	movement_type=drakefly
	movement=8
	experience=35
	level=1
	alignment=lawful
	advanceto=Sky Drake
	undead_variation=drake
	cost=16
	usage=scout

	unit_description= _ "Drake Gliders wear as little armor as possible so they can quickly escape their foes when they leave their caves. These Drakes are competent fighters, possessing the internal fire common to many of their kin. Gliders can also effectively use their speed to viciously slam their opponents into submission. The best gliders can look forward to being accepted into the ranks of the high flying Sky Drakes. From their aerial vantage point, these drakes can see past most defensive cover. Their skill at flying allows them the precision to target enemies under such cover.

Special Notes:"+{SPECIAL_NOTES_MARKSMAN}


	die_sound=drake-die.ogg
	{DEFENSE_ANIM "units/drakes/glider-defend.png" "units/drakes/glider.png" {SOUND_LIST:DRAKE_HIT} }
	[movement_anim]
		[frame]
			begin=0
			end=150
			image="units/drakes/glider-flying.png"
		[/frame]
	[/movement_anim]
	[death]
		[frame]
			begin=0
			end=130
			image="units/drakes/glider-die-1.png"
		[/frame]
		[frame]
			begin=130
			end=320
			image="units/drakes/glider-die-2.png"
		[/frame]
		[frame]
			begin=320
			end=450
			image="units/drakes/glider-die-3.png"
		[/frame]
		[frame]
			begin=450
			end=600
			image="units/drakes/glider-die-4.png"
		[/frame]
		[frame]
			begin=600
			end=750
			image="units/drakes/glider-die-5.png"
		[/frame]
		[frame]
			begin=750
			end=900
			image="units/drakes/glider-die-6.png"
		[/frame]
		[frame]
			begin=900
			end=1050
			image="units/drakes/glider-die-7.png"
		[/frame]
		[frame]
			begin=1050
			end=1200
			image="units/drakes/glider-die-8.png"
		[/frame]
	[/death]
	[attack]
		name=slam
		type=impact
		range=melee
		damage=6
		number=2
		icon=attacks/slam-drake.png
		[animation]
			[frame]
				begin=-200
				end=-150
				image="units/drakes/glider-attack-close1.png"
			[/frame]
			[frame]
				begin=-150
				end=-100
				image="units/drakes/glider-flying.png"
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-100
					end=50
					image="units/drakes/glider-attack-close2.png"
					sound=club.ogg
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-100
					end=50
					image="units/drakes/glider-attack-close2.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/else]
			[frame]
				begin=50
				end=100
				image="units/drakes/glider-flying.png"
			[/frame]
			[frame]
				begin=100
				end=150
				image="units/drakes/glider-attack-close1.png"
			[/frame]
			[frame]
				begin=150
				end=200
				image="units/drakes/glider.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=fire breath
		icon=attacks/fire-breath-drake.png
		type=fire
		range=ranged
		[specials]
			{WEAPON_SPECIAL_MARKSMAN}
		[/specials]
		damage=3
		number=3
		[animation]
			{MISSILE_FRAME_FIRE_BREATH 9,-34 9,15 22,-22 24,10}

			[if]
				hits=no
				
				[frame]
					begin=-400
					end=-350
					image="units/drakes/glider.png"
					sound=flame-big-miss.ogg
				[/frame]
			[/if]
			[else]
				hits=yes
				
				[frame]
					begin=-400
					end=-350
					image="units/drakes/glider.png"
					sound=flame-big.ogg
				[/frame]
			[/else]
			[frame]
				begin=-350
				end=-150
				image="units/drakes/glider-attack-ranged.png"
			[/frame]
			[frame]
				begin=-150
				end=0
				image="units/drakes/glider.png"
			[/frame]
		[/animation]
	[/attack]
[/unit]
