<?xml version="1.0" standalone="no"?>

<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="450" regeneration="5"/>
		<max-ep value="3000" regeneration="30"/>
		<armor value="15"/>
		<armor-type value="leather"/>
		<sight value="12"/>
		<time value="200"/>
		<multi-selection value="true"/>
		<cellmap value="false"/>
		<levels>
			<level name="expert" kills="5"/>
			<level name="master" kills="15"/>
			<level name="legendary" kills="30"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="library"/>
			<unit name="archmage_tower"/>
			<unit name="energy_source"/>
		</unit-requirements>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="50"/>
			<resource name="stone" amount="150"/>
			<resource name="energy" amount="2"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/archmage.bmp"/>
		<image-cancel path="images/magic_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/archmage_select1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_select3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_select4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_select5.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/archmage_ack1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_ack2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_ack3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_ack4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_ack5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_ack6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/archmage_ack7.wav"/>
		</command-sounds>
	</parameters>
	<skills>
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="35"/>
			<animation path="models/archmage_standing.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="move"/>
			<name value="move_skill"/>
			<ep-cost value="0"/>
			<speed value="168"/>
			<anim-speed value="168"/>
			<animation path="models/archmage_walking.g3d"/>
			<sound enabled="false"/>
		</skill>
		<skill>
			<type value="attack"/>
			<name value="ice_nova_skill"/>
			<ep-cost value="300"/>
			<speed value="75"/>
			<anim-speed value="75"/>
			<animation path="models/archmage_attacking.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack4.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack6.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack8.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack11.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack12.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack13.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack15.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_attack16.wav"/>
			</sound>
			<attack-strenght value="280"/>
			<attack-var value="90"/>
			<attack-range value="9"/>
			<attack-type value="energy"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.5"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit1.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit2.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit3.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit4.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="4"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>
		<skill>
			<type value="attack"/>
			<name value="static_fire_skill"/>
			<ep-cost value="1000"/>
			<speed value="40"/>
			<anim-speed value="40"/>
			<animation path="models/archmage_attacking.g3d"/>
			<sound enabled="true" start-time="0.2">
				<sound-file path="sounds/archmage_attack17.wav"/>
				<sound-file path="sounds/archmage_attack18.wav"/>
				<sound-file path="sounds/archmage_attack19.wav"/>
				<sound-file path="sounds/archmage_attack20.wav"/>
				<sound-file path="sounds/archmage_attack21.wav"/>
				<sound-file path="sounds/archmage_attack22.wav"/>
				<sound-file path="sounds/archmage_attack23.wav"/>
				<sound-file path="sounds/archmage_attack24.wav"/>
			</sound>
			<attack-strenght value="700"/>
			<attack-var value="50"/>
			<attack-range value="8"/>
			<attack-type value="energy"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.3"/>
			<projectile value="true">
				<particle value="true" path="particle_proj2.xml"/>
				<sound enabled="true">
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit1.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit2.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit3.wav"/>
					<sound-file path="$COMMONDATAPATH/sounds/archmage_hit4.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="5"/>
				<damage-all value="true"/>
				<particle value="true" path="fire_splash.xml"/>
			</splash>
		</skill>
		<skill>
			<type value="die"/>
			<name value="die_skill"/>
			<ep-cost value="0"/>
			<speed value="120"/>
			<anim-speed value="120"/>
			<animation path="models/archmage_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/archmage_die1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/archmage_die2.wav"/>
			</sound>
			<fade value="true"/>
		</skill>
	</skills>
	<commands>
		<command>
			<type value="stop"/>
			<name value="stop"/>
			<image path="images/magic_stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>
		<command>
			<type value="move"/>
			<name value="move"/>
			<image path="images/magic_move.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>
		<command>
			<type value="attack"/>
			<name value="ice_nova"/>
			<image path="images/archmage_ice_nova.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="ice_nova_skill"/>
		</command>
		<command>
			<type value="attack"/>
			<name value="static_fire"/>
			<image path="images/archmage_static_fire.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
		 	<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<attack-skill value="static_fire_skill"/>
		</command>
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="images/magic_hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="ice_nova_skill"/>
		</command>
	</commands>
</unit>
