[unit]
	id=White Mage
	name= _ "White Mage"
	race=human
	gender=male,female
	image="units/human-magi/white-mage.png"
	{MAGENTA_IS_THE_TEAM_COLOR}
	hitpoints=32
	movement_type=smallfoot
	movement=5
	experience=150
	level=2
	alignment=lawful
	advanceto=Mage of Light
	cost=40
	usage=healer
	unit_description= _ "Some magi, as they learn about the world around them, and learn the truth of the suffering and squalor in which humanity too often lives, find that they cannot bring themselves to be cloistered into a life of study. These men and women give up the life of a mage, and join monastic orders, dedicating the skills they have been given to the good of all. After their ordination, they often travel the world, ministering to sickness and injury.

Though not trained for combat, there is one enemy against which they are a potent ally. If need arises, they can call on the power of the Light to banish undead and spectral beings from the mortal plane.

Special Notes:"+{SPECIAL_NOTES_MAGICAL}+{SPECIAL_NOTES_ARCANE}+{SPECIAL_NOTES_CURES}
	die_sound={SOUND_LIST:HUMAN_DIE}
	{DEFENSE_ANIM "units/human-magi/white-mage-defend.png" "units/human-magi/white-mage.png" {SOUND_LIST:HUMAN_OLD_HIT} }
	[abilities]
		{ABILITY_CURES}
	[/abilities]
	[resistance]
		arcane=60
	[/resistance]
###	[death]
#		[frame]
#			begin=0
#			end=100
#			image="units/human-magi/white-mage-die-1.png"
#		[/frame]
#		[frame]
#			begin=100
#			end=200
#			image="units/human-magi/white-mage-die-2.png"
#		[/frame]
#		[frame]
#			begin=200
#			end=300
#			image="units/human-magi/white-mage-die-3.png"
#		[/frame]
#		[frame]
#			begin=300
#			end=400
#			image="units/human-magi/white-mage-die-4.png"
#		[/frame]
###	[/death]
	[healing_anim]
		[frame]
			begin=-525
			end=-450
			image="units/human-magi/white-mage-magic-1.png"
		[/frame]
		[frame]
			begin=-450
			end=-375
			image="units/human-magi/white-mage-magic-2.png"
		[/frame]
		[frame]
			begin=-375
			end=-300
			image="units/human-magi/white-mage-magic-3.png"
			halo=halo/holy/halo6.png
		[/frame]
		[frame]
			begin=-300
			end=-225
			image="units/human-magi/white-mage-magic-3.png"
			halo=halo/holy/halo1.png
		[/frame]
		[frame]
			begin=-225
			end=-150
			image="units/human-magi/white-mage-magic-3.png"
			halo=halo/holy/halo2.png
		[/frame]
		[frame]
			begin=-150
			end=-75
			image="units/human-magi/white-mage-magic-3.png"
			halo=halo/holy/halo3.png
		[/frame]
		[frame]
			begin=-75
			end=0
			image="units/human-magi/white-mage-magic-3.png"
			halo=halo/holy/halo4.png
		[/frame]
		[frame]
			begin=0
			end=75
			image="units/human-magi/white-mage-magic-3.png"
			halo=halo/holy/halo5.png
		[/frame]
		[frame]
			begin=75
			end=150
			image="units/human-magi/white-mage-magic-3.png"
			halo=halo/holy/halo6.png
		[/frame]
		[frame]
			begin=150
			end=225
			image="units/human-magi/white-mage-magic-2.png"
		[/frame]
		[frame]
			begin=225
			end=300
			image="units/human-magi/white-mage-magic-1.png"
		[/frame]
	[/healing_anim]
	[attack]
		name=staff
		icon=attacks/staff-magic.png
		type=impact
		range=melee
		damage=6
		number=1
		[animation]
			[frame]
				begin=-325
				end=-300
				image="units/human-magi/white-mage.png"
			[/frame]
			[frame]
				begin=-300
				end=-200
				image="units/human-magi/white-mage-melee-1.png"
			[/frame]
			[frame]
				begin=-200
				end=-100
				image="units/human-magi/white-mage-melee-2.png"
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-100
					end=50
					image="units/human-magi/white-mage-melee-3.png"
					sound=staff.wav
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-100
					end=50
					image="units/human-magi/white-mage-melee-3.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/else]
			[frame]
				begin=50
				end=150
				image="units/human-magi/white-mage-melee-4.png"
			[/frame]
			[frame]
				begin=150
				end=250
				image="units/human-magi/white-mage-melee-5.png"
			[/frame]
			[frame]
				begin=250
				end=350
				image="units/human-magi/white-mage-melee-6.png"
			[/frame]
		[/animation]
	[/attack]
	[attack]
		name=lightbeam
		type=arcane
		range=ranged
		[specials]
			{WEAPON_SPECIAL_MAGICAL}
		[/specials]
		damage=7
		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-mage-magic-1.png"
			[/frame]
			[frame]
				begin=-225
				end=-150
				image="units/human-magi/white-mage-magic-2.png"
			[/frame]
			[frame]
				begin=-150
				end=-75
				image="units/human-magi/white-mage-magic-3.png"
				halo=halo/holy/halo6.png
			[/frame]
			[if]
				hits=yes
				[frame]
					begin=-75
					end=0
					image="units/human-magi/white-mage-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-mage-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-mage-magic-3.png"
				halo=halo/holy/halo3.png
			[/frame]
			[frame]
				begin=75
				end=150
				image="units/human-magi/white-mage-magic-3.png"
				halo=halo/holy/halo5.png
			[/frame]

			[frame]
				begin=150
				end=200
				image="units/human-magi/white-mage-magic-3.png"
				halo=halo/holy/halo6.png
			[/frame]
			[frame]
				begin=200
				end=250
				image="units/human-magi/white-mage-magic-2.png"
			[/frame]
			[frame]
				begin=250
				end=300
				image="units/human-magi/white-mage-magic-1.png"
			[/frame]
		[/animation]
	[/attack]
	[female]
		name= _ "female^White Mage"
		gender=female
		image="units/human-magi/white-mage+female.png"
		die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
		{DEFENSE_ANIM "units/human-magi/white-mage+female-defend.png" "units/human-magi/white-mage+female.png" {SOUND_LIST:HUMAN_FEMALE_HIT} }
###		[death]
#			[frame]
#				image="units/human-magi/white-mage+female-die-1.png"
#			[/frame]
#			[frame]
#				image="units/human-magi/white-mage+female-die-2.png"
#			[/frame]
#			[frame]
#				image="units/human-magi/white-mage+female-die-3.png"
#			[/frame]
#			[frame]
#				image="units/human-magi/white-mage+female-die-4.png"
#			[/frame]
###		[/death]
		[healing_anim]
			[frame]
				image="units/human-magi/white-mage+female-magic-1.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-2.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-3.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-2.png"
			[/frame]
			[frame]
				image="units/human-magi/white-mage+female-magic-1.png"
			[/frame]
		[/healing_anim]
		[attack]
			[animation]
				[frame]
					image="units/human-magi/white-mage+female.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-melee-1.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-melee-2.png"
				[/frame]
				[if]
					[frame]
						image="units/human-magi/white-mage+female-melee-3.png"
					[/frame]
				[/if]
				[else]
					[frame]
						image="units/human-magi/white-mage+female-melee-3.png"
					[/frame]
				[/else]
				[frame]
					image="units/human-magi/white-mage+female-melee-4.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-melee-5.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-melee-6.png"
				[/frame]
			[/animation]
		[/attack]
		[attack]
			[animation]
				[frame]
					image="units/human-magi/white-mage+female-magic-1.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-magic-2.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-magic-3.png"
				[/frame]
				[if]
					[frame]
						image="units/human-magi/white-mage+female-magic-3.png"
					[/frame]
				[/if]
				[else]
					[frame]
						image="units/human-magi/white-mage+female-magic-3.png"
					[/frame]
				[/else]
				[frame]
					image="units/human-magi/white-mage+female-magic-3.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-magic-3.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-magic-3.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-magic-2.png"
				[/frame]
				[frame]
					image="units/human-magi/white-mage+female-magic-1.png"
				[/frame]
			[/animation]
		[/attack]
	[/female]
[/unit]
