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

<unit>
	<parameters>
		<size value="2"/>
		<height value="1"/>
		<max-hp value="1300" regeneration="3"/>
		<max-ep value="0"/>
		<armor value="10"/>	
		<armor-type value="leather"/>
		<sight value="15"/>
		<time value="250"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
			<level name="elite" kills="6"/>
		</levels>
		<fields>
			<field value="air"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements>
			<unit name="farm"/>
		</unit-requirements>
		<upgrade-requirements>
			<upgrade name="summon_ibis"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="wood" amount="100"/>
			<resource name="gold" amount="250"/>
			<resource name="food" amount="2"/>						
		</resource-requirements>
		<resources-stored/>
		<image path="images/ibis.bmp"/>
		<image-cancel path="../spearman/images/tech_cancel.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/horseman_select1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select7.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select8.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select9.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select10.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select11.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_select12.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/horseman_ack1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack4.wav"/>		
			<sound path="$COMMONDATAPATH/sounds/horseman_ack5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack7.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack8.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack9.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack10.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack11.wav"/>		
			<sound path="$COMMONDATAPATH/sounds/horseman_ack12.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack13.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack14.wav"/>
			<sound path="$COMMONDATAPATH/sounds/horseman_ack15.wav"/>						
		</command-sounds>

	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="50"/>
			<animation path="models/ibis_standing.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="250"/>
			<anim-speed value="100"/>
			<animation path="models/ibis_fly.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/horseman_walk1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_walk2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_walk3.wav"/>
			</sound> 
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="100"/>
			<animation path="models/ibis_attack.g3d"/>
			<sound enabled="true" start-time="0.4">
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack4.wav"/>		
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack6.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack7.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack8.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack9.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack10.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack11.wav"/>		
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack12.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack13.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_attack14.wav"/>
			</sound> 
			<attack-strenght value="170"/>
			<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_proj.xml"/>
				<sound enabled="true">
				<sound-file path="$COMMONDATAPATH/sounds/dragon_hit1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/dragon_hit2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/dragon_hit3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/dragon_hit4.wav"/>
			</sound>
			</projectile>
			<splash value="true">
				<radius value="1"/>
				<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="60"/>
			<anim-speed value="50"/>
			<animation path="models/ibis_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/horseman_die1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_die2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_die3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/horseman_die4.wav"/>
			</sound> 
                        <fade value="false"/>
		</skill>

	</skills>

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

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

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

		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="../spearman/images/tech_hold.bmp"/>
			<unit-requirements/>
			<upgrade-requirements>
				<!--upgrade name="training_field"/-->
			</upgrade-requirements>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

	</commands>
</unit>
