[unit]
	id=Mage of Light
	name= _ "Mage of Light"
	race=human
	gender=male,female
	image="units/human-magi/white-cleric.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	halo=halo/holy/white-cleric-aura.png
	hitpoints=42
	movement_type=smallfoot
	movement=5
	experience=100
	level=3
	alignment=lawful
	advanceto=null
	{AMLA_TOUGH 3}
	cost=64
	usage=fighter
	unit_description= _ "After years of experience, the most devout of white magi are bestowed with vast spiritual powers. By strict devotion to the path of the light, they can call upon its aid to chase away the shadows of the night.

Following a strict code of piety and honor, these men and women work tirelessly to bring life and order to the troubled world in which they live.

Special Notes:"+{SPECIAL_NOTES_MAGICAL}+{SPECIAL_NOTES_HOLY}+{SPECIAL_NOTES_CURES}+{SPECIAL_NOTES_ILLUMINATES}
	die_sound={SOUND_LIST:HUMAN_OLD_DIE}
	{DEFENSE_ANIM "units/human-magi/white-cleric-defend.png" "units/human-magi/white-cleric.png" {SOUND_LIST:HUMAN_OLD_HIT} }
	[abilities]
		{ABILITY_ILLUMINATES}
		{ABILITY_CURES}
	[/abilities]
	[resistance]
		holy=40
	[/resistance]
	[healing_anim]
		[frame]
			begin=-525
			end=-450
			image="units/human-magi/white-cleric-magic-1.png"
		[/frame]
		[frame]
			begin=-450
			end=-375
			image="units/human-magi/white-cleric-magic-2.png"
		[/frame]
		[frame]
			begin=-375
			end=-300
			image="units/human-magi/white-cleric-magic-3.png"
			halo=halo/holy/halo6.png
		[/frame]
		[frame]
			begin=-300
			end=-225
			image="units/human-magi/white-cleric-magic-3.png"
			halo=halo/holy/halo1.png
		[/frame]
		[frame]
			begin=-225
			end=-150
			image="units/human-magi/white-cleric-magic-3.png"
			halo=halo/holy/halo2.png
		[/frame]
		[frame]
			begin=-150
			end=-75
			image="units/human-magi/white-cleric-magic-3.png"
			halo=halo/holy/halo3.png
		[/frame]
		[frame]
			begin=-75
			end=0
			image="units/human-magi/white-cleric-magic-3.png"
			halo=halo/holy/halo4.png
		[/frame]
		[frame]
			begin=0
			end=75
			image="units/human-magi/white-cleric-magic-3.png"
			halo=halo/holy/halo5.png
		[/frame]
		[frame]
			begin=75
			end=150
			image="units/human-magi/white-cleric-magic-3.png"
			halo=halo/holy/halo6.png
		[/frame]
		[frame]
			begin=150
			end=225
			image="units/human-magi/white-cleric-magic-2.png"
		[/frame]
		[frame]
			begin=225
			end=300
			image="units/human-magi/white-cleric-magic-1.png"
		[/frame]
	[/healing_anim]
	[attack]
		name=morning star
		type=impact
		range=melee
		damage=7
		number=3
		icon=attacks/morning-star.png
		[animation]
			[if]
				hits=yes
				[frame]
					begin=-200
					end=-175
					image="units/human-magi/white-cleric-magic-3.png"
					sound=mace.wav
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-200
					end=-175
					image="units/human-magi/white-cleric-magic-3.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/else]
			[frame]
				begin=-175
				end=-100
				image="units/human-magi/white-cleric-mace-1.png"
			[/frame]
			[frame]
				begin=-100
				end=25
				image="units/human-magi/white-cleric-mace-2.png"
			[/frame]
			[frame]
				begin=25
				end=100
				image="units/human-magi/white-cleric-mace-3.png"
			[/frame]
			[frame]
				begin=100
				end=200
				image="units/human-magi/white-cleric-mace-4.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=lightbeam
		type=holy
		range=ranged
		[specials]
			{WEAPON_SPECIAL_MAGICAL}
		[/specials]
		damage=10
		number=4
		[animation]
			[missile_frame]
				begin=-180
				end=0
				image="projectiles/whitemissile-n.png"
				image_diagonal="projectiles/whitemissile-ne.png"
				halo=halo/holy/white-mage-halo1.png,halo/holy/white-mage-halo2.png,halo/holy/white-mage-halo3.png,halo/holy/white-mage-halo4.png
			[/missile_frame]

			[frame]
				begin=-300
				end=-225
				image="units/human-magi/white-cleric-magic-1.png"
			[/frame]
			[frame]
				begin=-225
				end=-150
				image="units/human-magi/white-cleric-magic-2.png"
			[/frame]
			[frame]
				begin=-150
				end=-75
				image="units/human-magi/white-cleric-magic-3.png"
				halo=halo/holy/halo6.png
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-75
					end=0
					image="units/human-magi/white-cleric-magic-3.png"
					sound={SOUND_LIST:HOLY}
					halo=halo/holy/halo1.png
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-75
					end=0
					image="units/human-magi/white-cleric-magic-3.png"
					sound={SOUND_LIST:HOLY_MISS}
					halo=halo/holy/halo1.png
				[/frame]
			[/else]
			[frame]
				begin=0
				end=75
				image="units/human-magi/white-cleric-magic-3.png"
				halo=halo/holy/halo3.png
			[/frame]
			[frame]
				begin=75
				end=150
				image="units/human-magi/white-cleric-magic-3.png"
				halo=halo/holy/halo5.png
			[/frame]
			
			[frame]
				begin=150
				end=200
				image="units/human-magi/white-cleric-magic-3.png"
				halo=halo/holy/halo6.png
			[/frame]
			[frame]
				begin=200
				end=250
				image="units/human-magi/white-cleric-magic-2.png"
			[/frame]
			[frame]
				begin=250
				end=300
				image="units/human-magi/white-cleric-magic-1.png"
			[/frame]
		[/animation]
	[/attack]
	[female]
		name= _ "female^Mage of Light"
		gender=female
		image="units/human-magi/white-cleric+female.png"
		die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
		{DEFENSE_ANIM "units/human-magi/white-cleric+female-defend.png" "units/human-magi/white-cleric+female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
		[healing_anim]
			[frame]
				image="units/human-magi/white-cleric+female-magic-1.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-2.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-2.png"
			[/frame]
			[frame]
				image="units/human-magi/white-cleric+female-magic-1.png"
			[/frame]
		[/healing_anim]
		[attack]
			[animation]
				[if]
					hits=yes
					[frame]
						image="units/human-magi/white-cleric+female-magic-3.png"
					[/frame]
				[/if]
				[else]
					hits=no
					[frame]
						image="units/human-magi/white-cleric+female-magic-3.png"
					[/frame]
				[/else]
				[frame]
					image="units/human-magi/white-cleric+female-mace-1.png"
				[/frame]
				[frame]
					image="units/human-magi/white-cleric+female-mace-2.png"
				[/frame]
				[frame]
					image="units/human-magi/white-cleric+female-mace-3.png"
				[/frame]
				[frame]
					image="units/human-magi/white-cleric+female-mace-4.png"
				[/frame]
		[/animation]
		[/attack]
		[attack]
			[animation]
				[frame]
					image="units/human-magi/white-cleric+female-magic-1.png"
				[/frame]
				[frame]
					image="units/human-magi/white-cleric+female-magic-2.png"
				[/frame]
				[frame]
					image="units/human-magi/white-cleric+female-magic-3.png"
				[/frame]
				[if]
					[frame]
						image="units/human-magi/white-cleric+female-magic-3.png"
					[/frame]
				[/if]
				[else]
					[frame]
						image="units/human-magi/white-cleric+female-magic-3.png"
					[/frame]
				[/else]
				[frame]
					image="units/human-magi/white-cleric+female-magic-3.png"
				[/frame]
				[frame]
					image="units/human-magi/white-cleric+female-magic-3.png"
				[/frame]
				[frame]
					image="units/human-magi/white-cleric+female-magic-3.png"
				[/frame]
				[frame]
					image="units/human-magi/white-cleric+female-magic-2.png"
				[/frame]
				[frame]
					image="units/human-magi/white-cleric+female-magic-1.png"
				[/frame]
			[/animation]
		[/attack]
	[/female]
[/unit]
