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

<unit>
	<parameters>
		<size value="1"/>
		<height value="1"/>
		<max-hp value="950" regeneration="4"/>
		<max-ep value="3000" regeneration="20"/>
		<armor value="20"/>	
		<armor-type value="leather"/>
		<sight value="14"/>
		<time value="200"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="wise" kills="5"/>
			<level name="gnostic" kills="15"/>
			<level name="sage" kills="30"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="poisen_morel"/>
		</unit-requirements> 
		<upgrade-requirements>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="200"/>
			<resource name="energy" amount="2"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/dark_elder.bmp"/>
		<image-cancel path="images/dark_magic_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="sounds/clicked1.wav"/>
			<sound path="sounds/clicked2.wav"/>
			<sound path="sounds/clicked3.wav"/>
			<sound path="sounds/clicked4.wav"/>
			<sound path="sounds/clicked5.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="sounds/ack1.wav"/>
			<sound path="sounds/ack2.wav"/>
			<sound path="sounds/ack3.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/elder_standing.g3d"/>
			<sound enabled="false"/>
		</skill>
		
    <skill>
			<type value="move"/>
			<name value="charge_skill"/>
			<ep-cost value="0"/>
			<speed value="250"/>
			<anim-speed value="50"/>
			<animation path="models/elder_charging.g3d"/>
			<sound enabled="false"/>
		</skill>
    		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>
			<ep-cost value="0"/>
			<speed value="180"/>
			<anim-speed value="180"/>
			<animation path="models/elder_walking.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="75"/>
			<anim-speed value="75"/>
			<animation path="models/elder_attacking.g3d"/>
			<sound enabled="true" start-time="0.3">
				<sound-file path="sounds/touch1.wav"/>
				<sound-file path="sounds/touch2.wav"/>
				<sound-file path="sounds/touch3.wav"/>
				<sound-file path="sounds/touch4.wav"/>
			</sound>
			<attack-strenght value="200"/>
			<attack-var value="45"/>
			<attack-range value="2"/>
			<attack-type value="slashing"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0.5"/>
			<projectile value="false"/>
			<splash value="false"/>
		</skill>
		
    <skill>
			<type value="attack"/>
			<name value="attack_air_skill"/>		
			<ep-cost value="200"/>
			<speed value="75"/>
			<anim-speed value="75"/>
			<animation path="models/elder_air_attack.g3d"/>
			<sound enabled="true" start-time="0.3">
				<sound-file path="sounds/airshot1.wav"/>
				<sound-file path="sounds/airshot2.wav"/>
				<sound-file path="sounds/airshot3.wav"/>
				<sound-file path="sounds/airshot4.wav"/>
			</sound>
			<attack-strenght value="425"/>
			<attack-var value="90"/>
			<attack-range value="10"/>
			<attack-type value="energy"/>
			<attack-fields>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.5"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="false"/>
			</projectile>
			<splash value="true">
				<radius value="2"/>
				<damage-all value="true"/>
				<particle value="true" path="particle_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/elder_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="sounds/die1.wav"/>
				<sound-file path="sounds/die2.wav"/>
				<sound-file path="sounds/die3.wav"/>
				<sound-file path="sounds/die4.wav"/>
				<sound-file path="sounds/die5.wav"/>
			</sound>			
			<fade value="true"/>
		</skill>

		<skill>
			<type value="build"/>
			<name value="build_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="20"/>
			<animation path="models/elder_producing.g3d"/>
			<sound enabled="false"/>
		</skill>

	</skills>
	
	<commands>
		<command>
			<type value="stop"/>
			<name value="stop"/>
			<image path="images/dark_magic_stop.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value="move"/>
			<name value="move"/>
			<image path="images/dark_magic_move.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="attack"/>
			<image path="images/attack_melee.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="charge_skill"/>
			<attack-skill value="attack_skill"/>
		</command>
		
		<command>
			<type value="attack"/>
			<name value="attack_air"/>
			<image path="images/death_bolt.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="charge_skill"/>
			<attack-skill value="attack_air_skill"/>
		</command>

		<command>
			<type value="build"/>
			<name value="build"/>
			<image path="images/build.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<build-skill value="build_skill"/>
			<buildings>
				<building name="earth_serpent"/>
			</buildings>
			<start-sound enabled="false"/>
			<built-sound enabled="false"/>
		</command>
		
		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="images/dark_magic_hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>			
		
	</commands>
</unit>
