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

<unit>

	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="800" regeneration="3"/>
		<max-ep value="250" regeneration="5"/>
		<armor value="0"/>
		<armor-type value="leather"/>					
		<sight value="15"/>
		<time value="120"/>	
		<multi-selection value="true"/>	
		<cellmap value="false"/>
		<levels>
		 	<level name="hope_giving" kills="4"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements/>
		<resource-requirements>
			<resource name="gold" amount="200"/>
			<resource name="food" amount="6"/>
		</resource-requirements>
		<resources-stored/>
		<image path="images/minstrel.bmp"/>
		<image-cancel path="../tree_of_life/images/stop.bmp"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="false"/>
		<command-sounds enabled="false"/>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="40"/>
			<animation path="models/minstrel_idle.g3d"/>
			<sound enabled="false"/>
		</skill>
		
		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="150"/>
			<anim-speed value="120"/>
			<animation path="models/minstrel_walking.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="produce"/>
			<name value="summon_skill"/>		
			<ep-cost value="0"/>
			<speed value="180"/>
			<anim-speed value="80"/>
			<animation path="models/minstrel_summoning.g3d"/>
			<sound enabled="false"/>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="50"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/minstrel_attacking.g3d"/>
			<sound enabled="false"/>
			<attack-strenght value="180"/>
			<attack-var value="50"/>
			<attack-range value="14"/>
			<attack-type value="energy"/>
			<attack-fields>
				<field value="land"/>
				<field value="air"/>
			</attack-fields>
			<attack-start-time value="0.5"/>
			<projectile value="true">
				<particle value="true" path="particle_proj.xml"/>
				<sound enabled="true">
					<sound-file path="sounds/summoner_hit1.wav"/>
					<sound-file path="sounds/summoner_hit2.wav"/>
					<sound-file path="sounds/summoner_hit3.wav"/>
					<sound-file path="sounds/summoner_hit4.wav"/>
				</sound>
			</projectile>
			<splash value="true">
				<radius value="2"/>
				<damage-all value="false"/>
				<particle value="true" path="particle_splash.xml"/>
			</splash>
		</skill>

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="80"/>
			<anim-speed value="80"/>
			<animation path="models/minstrel_dying.g3d"/>
			<sound enabled="false"/>			
			<fade value="true"/>
		</skill>

		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="40"/>
			<animation path="models/minstrel_idle.g3d"/>
			<sound enabled="false"/>			
		</skill>

		<skill>
			<type value="repair"/>
			<name value="heal"/>		
			<ep-cost value="0"/>
			<speed value="500"/>
			<anim-speed value="150"/>
			<animation path="models/minstrel_healing.g3d"/>
			<sound enabled="false"/>
		</skill>

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

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

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

		<command>
			<type value="produce"/>
			<name value="call_upon_ent" />
			<image path="images/ent.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<produce-skill value="summon_skill"/>
			<produced-unit name="ent"/>
		</command>  

		<command>
			<type value="repair"/>
			<name value="heal"/>
			<image path="images/heal.bmp"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
			<repair-skill value="heal"/>
			<repaired-units>
				<unit name="ent"/>
				<unit name="magol_hedir"/>
				<unit name="grey_elf_archer"/>
				<unit name="galadrim_archer"/>
				<unit name="elf"/>
				<unit name="minstrel"/>
				<unit name="gryphon"/>
				<unit name="reaver"/>
				<unit name="wise_elf"/>		
			</repaired-units>		
		</command>

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

	</commands>
</unit>
